Leaked source code of windows server 2003
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.

12 lines
359 B

  1. //var date = new Date ();
  2. //WScript.Echo (date.toString ());
  3. //WScript.Echo (date.toUTCString ());
  4. //WScript.Echo (date.getVarDate ());
  5. var datetime = new ActiveXObject ("WbemScripting.SWbemDateTime");
  6. var dateNow = new Date ();
  7. datetime.SetVarDate (dateNow.getVarDate ());
  8. WScript.Echo (datetime.Value);
  9. WScript.Echo (datetime.GetVarDate ());