如何从C#中的文件修改日期? [英] How do I get modified date from file in C#?

查看:114
本文介绍了如何从C#中的文件修改日期?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在PC上制作一个文件,我想把它转移到一个 PPC (< a href =https://en.wikipedia.org/wiki/Windows_Mobile =noreferrer> Windows Mobile )。



我如何获取此文件的修改日期?



(我需要在Windows Mobile上。)

解决方案

FileInfo.LastWriteTime

FileInfo.LastWriteTimeUtc 应该注册此信息。


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?

(I need it on Windows Mobile.)

解决方案

FileInfo.LastWriteTime and FileInfo.LastWriteTimeUtc should register this information.

这篇关于如何从C#中的文件修改日期?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆