Computer Science, asked by sukanyaverma6533, 1 year ago

How to convert DateTime to a number in MySQL?

Answers

Answered by muskanc918
0

UNIX_TIMESTAMP(CONVERT_TZ(datetime, '+00:00', @@session.time_zone))

or:

TIMESTAMPDIFF(SECOND,'1970-01-01 00:00:00',datetime)

Similar questions