-2

I need convert this integer "1469416462" to datetime in format dd-mm-yyyy hh:mm:ss . Any ideas?

My Intent:

select CONVERT (datetime,1469416462)
JJJ
  • 32,902
  • 20
  • 89
  • 102
Alexis Cervetto
  • 65
  • 1
  • 10

1 Answers1

0

The value 1469416462 looks like a Unix-Timestamp.
Unix-Timestamp: Seconds since 1.1.1970
So the solution would be easy like:

For MySQL:

SELECT from_unixtime(1469416462) 
Esteban P.
  • 2,789
  • 2
  • 27
  • 43