Hello,
As per my knowledge ,DateTime has no such property(LastModified).
To get last modified date of a file you can try below code.
DateTime lastModified = System.IO.File.GetLastWriteTime(@"C:\abcd.txt");
Console.WriteLine(lastModified.ToString("dd/MM/yy HH:mm:ss"));
Thanks