I got the problem in VBScript when the Date (including Now) always calls from Windows system Date/Time.
How can I set the Date/Time for VBScipt without configuring system Date/Time in Windows.
e.g.
When call Date in VBS, Date will return the current system date(if today date is 1/1/2001)
Dim settingDate
settingDate = Date
//settingDate = 1/1/2001
I would like something to hooking up the VBS code to get Date from we set without changing Windows System Date/Time from code
//Implement something to tell VBS that current date is 12/12/2000
Dim settingDate
settingDate = Date
//settingDate = 12/12/2000
Thanks
Best Answer
Just redefine Date(), Time(), Now(). POC script:
output: