Search code examples
datedatetimeiso

I need help understanding this date format


I have a csv file with a date column and I am having trouble trying to figure out the format in which this date is in.

enter image description here

I have tried several timestamp converters and none of them seem to give me the accurate date.

The dates should all range within 2017.


Solution

  • Excel store dates and times as a floating point number as days since 1900/01/01 00:00:00. So 42954.49986111111 represents 2017-08-07 11:59:48.0000000.

    .Net can already understand this "format":

    DateTime.FromOADate(42954.49986111111);