0

We are talking about the old binary xls format here, Excel 2003 vintage.

The document properties appear to show the last modified time as the local time.

I want to convert to UTC.

We've tried the Aspose libraries. They return DateTime.Kind = Unspecified.

We do not have the original file - just a byte array.

Nick A Miller
  • 1,325
  • 1
  • 13
  • 20
  • possible duplicate of [How to get the current datetime in UTC from an Excel VBA macro](http://stackoverflow.com/questions/1600875/how-to-get-the-current-datetime-in-utc-from-an-excel-vba-macro) – brettdj Nov 28 '12 at 09:53
  • not a duplicate: this is in C#. Have added .net tag to be clearer. – Nick A Miller Nov 28 '12 at 21:03

1 Answers1

0

You can use either File.GetLastWriteTimeUtc, or FileInfo.LastWriteTimeUtc. The type of file is not relevant.

Matt Johnson-Pint
  • 230,703
  • 74
  • 448
  • 575