Quote:
Originally Posted by joaompc
The timestamp as to be in 2010/2011...
|
The numbers you use are not UNIX timestamps.
Excel stores date as double, i.e the days expired since 01-01-1900 or 01-01-1904, de last one is used here.
So it's seems to me that the data in the mysql table is retreived from Excel too, and Excel exports a date in seconds.
So you need to convert it to UNIX timestamp:
Code:
SELECT FROM_UNIXTIME(3381350416 - (DATEDIFF('1970-01-01', '1904-01-01')*24*3600))