E
EMonaco
All,
Writing a simple app to list all files in a directory, their size, last
modified date/time, and version number if any. Everything is working great
except double-checking the output to the directory as displayed in explorer,
the time on some files are off by exactly one hour.
To display the time in my app I do strDateTime =
FileInfoObj.LastWriteTime.ToString("g"); Clearly the 1 hour would correspond
to daylight savings. With older files (Jan/04-Mar/04) being the ones that
are off by an hour. Can I correct for this? Basically, I'd like my output to
match explorer, as that was the old method we used to get modified
date/time.
Regards,
Erin.
Writing a simple app to list all files in a directory, their size, last
modified date/time, and version number if any. Everything is working great
except double-checking the output to the directory as displayed in explorer,
the time on some files are off by exactly one hour.
To display the time in my app I do strDateTime =
FileInfoObj.LastWriteTime.ToString("g"); Clearly the 1 hour would correspond
to daylight savings. With older files (Jan/04-Mar/04) being the ones that
are off by an hour. Can I correct for this? Basically, I'd like my output to
match explorer, as that was the old method we used to get modified
date/time.
Regards,
Erin.