Advertisement
Guest User

Untitled

a guest
Mar 21st, 2018
74
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.19 KB | None | 0 0
  1. public static DateTime FromExcelSerialDate(int SerialDate)
  2. {
  3.     if (SerialDate > 59) SerialDate -= 1; //Excel/Lotus 2/29/1900 bug  
  4.     return new DateTime(1899, 12, 31).AddDays(SerialDate);
  5. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement