I am using Spire.Doc to extract last modified date of word document.
Here is the code I am using.
Document document = new Document();
document.LoadFromFile(path);
var lastModifiedDate = document.BuiltinDocumentProperties.LastSaveDate;
Issue is that last save date I get is not accurate. It adds 4 hours to last modified date. If I open word file and go to file->Info->Last Modified date it says 5/15/2024 3:41 PM while return value from above code is 5/15/2024 7:41 PM.
I tried several word files with different modified date. Every time it add exactly 4 hours to output.
It could be because of UTC time conversion as UTC time should be 4 hours ahead of Eastern Standard Time during day light saving.
How do I get correct modified date using Spire.Doc?