e36M3
e36M3

Reputation: 6022

EPPlus Excel Related Dates Last Modified

Does anyone know if there is a way to set the "Last Modified" date of a workbook? You can see this property by opening an .xlsx and going File -> Info in Excel, it's under Related Dates and it is not set by default with EPPlus. If you simply save the file in Excel afterwards the date is then populated. Is there any way to set this date with EPPlus when generating the file originally?

Upvotes: 0

Views: 467

Answers (1)

e36M3
e36M3

Reputation: 6022

To answer my own question, this can be done by setting the Workbook.Properties.Modified of the ExcelPackage you're working on.

Upvotes: 1

Related Questions