I make a file in PC, and I want to transfer it to a PPC (Windows Mobile).
How can I get the modified date of this file?
(I need it on Windows Mobile.)
I make a file in PC, and I want to transfer it to a PPC (Windows Mobile).
How can I get the modified date of this file?
(I need it on Windows Mobile.)
FileInfo.LastWriteTime
and
FileInfo.LastWriteTimeUtc
should register this information.
string strFilePath = @"C:\myfile.txt";
DateTime lastModified = System.IO.File.GetLastWriteTime(strFilePath);
Reference: File.GetLastWriteTime
on MSDN.
Try This.
FileInfo fileName = new FileInfo("path");
var created = fileName.CreationTime; //File Creation
var lastmodified = fileName.LastWriteTime;//File Modification