Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
代码行和输出:
fileInfo.CreationTime.ToShortDateString();
例如,输出就是11/19/2012这种格式MM/dd/yyyy。 如何将格式更改为dd/MM/yyyy?
11/19/2012
使用ToString(字符串格式):
fileInfo.CreationTime.ToString("dd/MM/yyyy")