get-date-.touniversaltime Verified current stable Not installed?

Get Date .touniversaltime / Display Current Date Time Utc Iso Format Windows Powershell

Display Current Date Time Utc Iso Format Windows Powershell

Get Date .touniversaltime command syntax to display current date time utc iso format windows powershell. Copyable examples, output expectations, and common mistakes.

$
Terminal
(Get-Date).ToUniversalTime()

Command Breakdown

What each part is doing

(Get-Date).ToUniversalTime()
Base Command
The executable that performs this operation. Here it runs Get Date .touniversaltime before the shell applies any redirect operators.