需要内容创建文件的日期 [英] Need Content Created Date of a file
本文介绍了需要内容创建文件的日期的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
大家好,
我需要创建xls文件的内容日期。这是在文件属性的详细信息选项卡中。
如何在我的应用程序中获取此信息。
请提供您的解决方案或任何建议。
谢谢
Nitish
Hi All,
I need content created date of a xls file. Which is in Details Tab in file Properties.
How can i get this in my application.
Please give your solutions or any suggestions.
Thanks
Nitish
推荐答案
这可能是您解决问题的方法:
获取excel文件的内容创建日期 [ ^ ]
Possibly this is the solution for your problem:
getting content-created-date of an excel file[^]
在System.IO库中使用File.GetCreationTime(FilePath) :[ ^ ]。
这是一个通用解决方案:'FilePath是一个包含完全限定文件路径名的字符串参数。根据文件的安全设置,您可能需要处理FileIOPermission:[ ^ ]
Use File.GetCreationTime(FilePath) in the System.IO library: [^].
That's a "universal" solution: 'FilePath is a string parameter containing a fully qualified file path name. Depending on the file's security settings, you may need to deal with FileIOPermission: [^]
这篇关于需要内容创建文件的日期的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文