我如何在C#文件修改日期? [英] How do I get modified date from file in C#?
本文介绍了我如何在C#文件修改日期?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我PC做的文件,我想将它转移到一个 PPC (< A HREF =https://en.wikipedia.org/wiki/Windows_Mobile相对=nofollow> 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?
(我需要它在Windows Mobile)。
(I need it on Windows Mobile.)
推荐答案
<一个href=\"http://msdn.microsoft.com/en-us/library/system.io.filesysteminfo.lastwritetime.aspx\"><$c$c>FileInfo.LastWriteTime$c$c>
和
<一href=\"http://msdn.microsoft.com/en-us/library/system.io.filesysteminfo.lastwritetimeutc.aspx\"><$c$c>FileInfo.LastWriteTimeUtc$c$c>要登记这些信息。
FileInfo.LastWriteTime
and
FileInfo.LastWriteTimeUtc
should register this information.
这篇关于我如何在C#文件修改日期?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文