Create Universal Time from Local Time in ISO Format

by Jun 15, 2018

If you’re working across countries and time zones, you may want to use universal time instead of local time. And to ensure that the time format is culture neutral, using the ISO format is recommended. Here is how:

$date = Get-Date
$date.ToUniversalTime().ToString('yyyy-MM-dd HH:mm:ss')

Twitter This Tip! ReTweet this Tip!