none
File Creation time returns File Mod time RRS feed

  • Question

  • Using the FileInfo class, I am trying to get a file creation date/time, but I'm not getting what I'm looking for. 

    If I list a folder in Windows Explorer (Windows 7 64-bit), one of the files has a the following dates in Windows Explorer:

    Date: 4/7/2013 5:01am
    Date created: 5/3/2013 3:05pm
    Date modified: 5/3/2013 3:05pm

    (see http://www.photobert.com/temp/filedates.jpg )

    The column listed as "Date" has the date that I'm trying to retrieve - the actual date that this file was created. What is the "Date" that Windows is returning and how do I get it thru .NET?

    Thanks


    Bert Sirkin

    Saturday, May 4, 2013 12:11 AM

Answers

  • I figured it out - since the files were image files, Windows was showing the EXIF data - not the file data - for the date. It was the date the image was taken.


    Bert Sirkin

    • Marked as answer by BertSirkin Saturday, May 4, 2013 3:04 AM
    Saturday, May 4, 2013 3:03 AM

All replies