I am using MySQL 5 and I am trying to convert a datetime field to a UTC_TIMESTAMP. Here is what I have but it\'s not working and not sure if I could even do this. But could some
Try the UNIX_TIMESTAMP() function insted:
SELECT UNIX_TIMESTAMP(c.login_datetime) as `start` FROM tbl_employees_login AS c ;
Beware that:
The server interprets the date (or datetime) as a value in the current time zone and converts it to an internal value in UTC.