Click to See Complete Forum and Search --> : File attributes: Date Created


Gabro
May 31st, 2002, 02:44 AM
hi!
is there any way for me to get a file's attributes when I open a file using the openFileDialog method. i want to know the date the file was created.

thks

jparsons
May 31st, 2002, 08:08 AM
Originally posted by Gabro
hi!
is there any way for me to get a file's attributes when I open a file using the openFileDialog method. i want to know the date the file was created.

thks

Take the path returned from openFileDialog and then

DateTime creation = File.GetCreationTime(path)

Gabro
June 4th, 2002, 08:16 PM
Originally posted by jparsons


Take the path returned from openFileDialog and then

DateTime creation = File.GetCreationTime(path)

thx for ur help