📜  从文件 c# 代码示例中获取日期

📅  最后修改于: 2022-03-11 14:48:52.244000             🧑  作者: Mango

代码示例1
DateTime creation = File.GetCreationTime(@"C:\test.txt");
DateTime modification = File.GetLastWriteTime(@"C:\test.txt");