07-24-2023, 06:15 AM
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](
var WshShell = Sys.OleObject("WScript.Shell");
var fso = new ActiveXObject("Scripting.FileSystemObject");
var objFile = fso.GetFile("c:\\abc.txt");
var date = objFile.DateLastModified + "";
[To see links please register here]
)) Is there any way I can get this date with respect to the time zone providedvar WshShell = Sys.OleObject("WScript.Shell");
var fso = new ActiveXObject("Scripting.FileSystemObject");
var objFile = fso.GetFile("c:\\abc.txt");
var date = objFile.DateLastModified + "";