You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
13 lines
359 B
13 lines
359 B
|
|
//var date = new Date ();
|
|
|
|
//WScript.Echo (date.toString ());
|
|
//WScript.Echo (date.toUTCString ());
|
|
//WScript.Echo (date.getVarDate ());
|
|
|
|
|
|
var datetime = new ActiveXObject ("WbemScripting.SWbemDateTime");
|
|
var dateNow = new Date ();
|
|
datetime.SetVarDate (dateNow.getVarDate ());
|
|
WScript.Echo (datetime.Value);
|
|
WScript.Echo (datetime.GetVarDate ());
|