C# Julian Date Parser
问题 I have a cell in a spreadsheet that is a date object in Excel but becomes a double (something like 39820.0 for 1/7/2009) when it comes out of C1's xls class. I read this is a Julian date format. Can someone tell me how to parse it back into a DateTime in C#? Update: It looks like I might not have a Julian date, but instead the number of days since Dec 30, 1899. 回答1: I think Excel is just using the standard OLE Automation DATE type which can be converted with the DateTime.FromOADate method.