+ 1
How to get the date of save or change of a file?
Further explanation in case title is not clear: Say, I have a file that I created on 7th December in 2020, 16:00. When you make changes on the file ( say, it is a text file ) that date above changes into the date when you make the changes at. Can I get that date and time through C# ?
1 Resposta
+ 3
File.GetLastWriteTime(“path”).ToString(“yyyy-MM-dd HH:mm”);