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 someone please tell me what I am doing wrong? Thanks
I have tried this:
SELECT
UTC_TIMESTAMP(start),
c.login_datetime as `start`
FROM
tbl_employees_login AS c
And This…
SELECT
UTC_TIMESTAMP(c.login_datetime) as `start`
FROM
tbl_employees_login AS c
And neither works!!
Try the UNIX_TIMESTAMP() function insted:
Beware that: