My goal is to display the date of an excel file. But : If I download the file from the internet , automaitclly the creation date and modify date are set to current time and date. I looked upon the file's properties , and found that in section 'Details' , under personal infomation , there is a section called 'Source' and there , it has a property called ' Content Created ' with the original date file.
Is there a way to get it to a string ??
Thanks .
You can use the Microsoft DSO OLE Document Properties Reader to get this.
The DSO file can be downloaded from http://support.microsoft.com/default.aspx?scid=http://support.microsoft.com:80/support/kb/articles/Q224/3/51.asp
In VBA you can get the property using
ThisWorkbook.BuiltinDocumentProperties("Creation Date")
like this:I haven't used c# with Excel though but the MSDN documentation has an example: Workbook.BuiltinDocumentProperties Property (MSDN)
Here is an example, JPW should still have his answer marked for the points. Not this one.