I have a file which gets created/modified on a PST machine. But when I am accessing this file from an Indian standard time, the Modified date will be returned according to the current system time zone. (As explained here) Is there any way I can get this date with respect to the time zone provided
var WshShell = Sys.OleObject("WScript.Shell");
var fso = new ActiveXObject("Scripting.FileSystemObject");
var objFile = fso.GetFile("c:\\abc.txt");
var date = objFile.DateLastModified + "";
Yes, you do this with the DateDiff function in VBS:
http://www.devguru.com/technologies/vbscript/quickref/datediff.html
DevGuru Info
In javascript you can do it like this:
How to calculate date difference in javascript