Set dateTime = CreateObject("WbemScripting.SWbemDateTime")
wscript.echo "Local Time: " & dateTime
wscript.echo "UTC Time: " & dateTime.GetVarDate (false)
Select allOpen in new window
1994-11-05T08:15:30-05:00 corresponds to November 5, 1994, 8:15:30 am, US Eastern Standard Time.
1994-11-05T13:15:30Z corresponds to the same instant.
© 1996-2023 Experts Exchange, LLC. All rights reserved. Covered by US Patent