Powershell: Convert a date/time value to UTC

Scenario:  Convert a datetime value to UTC in PowerShell

Scriptlet:    (Get-Date “2/12/2019 1:00 AM”).ToUniversalTime()

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

%d bloggers like this: