How do I get modified date from file in C# 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.) 回答1: FileInfo.LastWriteTime and FileInfo.LastWriteTimeUtc should register this information. 回答2: string strFilePath = @"C:\myfile.txt"; DateTime lastModified = System.IO.File.GetLastWriteTime(strFilePath); Reference: File.GetLastWriteTime on MSDN. 回答3: Try This. FileInfo fileInfo = new FileInfo("path"); var created = fileInfo.CreationTime; /