I upload an XML file to migrate its contents to my database, but I want firstly store the last modified date of that file to assure that no change has happened to that file from
System.IO.FileInfo object should yield a LastWriteTime property
FileInfo myFileInfo= new FileInfo(path) ; myFileInfo.Refresh(); string t = myFileInfo.LastWriteTime.ToString("F")