G
google_groups3
Hi all,
I am slowly re-writing old VB6 code to VB.NET. I have 1 problem. I
was using FileSystemObject to return the modified timestamp of a
file, all worked well.
When I use System.IO.File.GetLastWriteTime(MyFile).ToShortTimeString
the time is 1 hour behind that of the file. For example, I look in
Windows Explorer and see that the time stamp is 11:24.
System.IO.File.GetLastWriteTime(MyFile).ToShortTimeString reports it
at 10:24 though.
The system clock is set correctly and also if i test it with FSO, it
reports the same time as Windows Explorer. What is wrong???
Thanks,
Steve
I am slowly re-writing old VB6 code to VB.NET. I have 1 problem. I
was using FileSystemObject to return the modified timestamp of a
file, all worked well.
When I use System.IO.File.GetLastWriteTime(MyFile).ToShortTimeString
the time is 1 hour behind that of the file. For example, I look in
Windows Explorer and see that the time stamp is 11:24.
System.IO.File.GetLastWriteTime(MyFile).ToShortTimeString reports it
at 10:24 though.
The system clock is set correctly and also if i test it with FSO, it
reports the same time as Windows Explorer. What is wrong???
Thanks,
Steve