compare modified timeon two file diff time zones
Hi, I'm trying to compare modified time of two files which are in different time zones. I'm able to get the modified of both the files using GetFile and comparing them using DateDiff but since both the files are in different time zones result in incorrect. Getfile is not getting the time zone of the file.
Is there any way to change the time zone of file1 to the time zone of file2. Here, time zone of file1 can be any timezone of 10 different site we have but i know the time zone of file2. Is there a way to do this with a vb script?
Thanks in advance for the help!
Re: compare modified timeon two file diff time zones
Couple of ways. Get the machine time (??? is that correct ???) and compare those or if you know the time zones and the difference between them, add that difference to the one that is lagging behind and then compare your dates.
Good Luck
Re: compare modified timeon two file diff time zones
file date times are stored as standard value (GMT), then displayed as local time
see http://vbnet.mvps.org/index.html?cod...ledatetime.htm