Answers for "sql server convert unix epoch to date"

SQL
1

convert epoch to date in sql server

SELECT FROM_UNIXTIME(FLOOR(EPOCH_TIMESTAMP/1000)) FROM table; --if milliseconds
SELECT FROM_UNIXTIME(FLOOR(EPOCH_TIMESTAMP)) FROM table; --no milliseconds
Posted by: Guest on November-16-2020
0

sql convert unix time to date

select FROM_UNIXTIME(UNIX_TIMESTAMP(),'%a %b %d %H:%i:%s UTC %Y');
Posted by: Guest on July-16-2020

Code answers related to "sql server convert unix epoch to date"

Code answers related to "SQL"

Browse Popular Code Answers by Language