I have a column in Excel csv with values like this
42973.74257
I want to convert it to MySQL date time by using:
DATE_ADD('1900-01-01', INTERVAL (42973.74257*60*60*24) second) as date
However, it would give me an incorrect result
2017-08-28 17:49:18.048000
while the correct result should be
8/26/2017 5:49:18 PM
It add 2 more days to the result. As I have around 1M rows so I would not know if all the results would be incorrect.
Do you guys have any better way to convert serial numbers from excel to mysql?
Thanks,
H