How do I convert an Excel serial date number to a .NET DateTime?

I find it simpler using FromOADate method, for example:

DateTime dt = DateTime.FromOADate(39938);

Using this code dt is “05/05/2009”.

Leave a Comment