get-date
Get the current date and time. tldr-pages
On Windows
Windows
Get the current date and time. Note: This command can only be used through PowerShell.
Display the current date and time
Get-DateIdentifyDisplay the current date and time with a .NET format specifier
Get-Date -Format "yyyy-MM-dd HH:mm:ss"IdentifyDisplay the current date and time in UTC and ISO 8601 format
(Get-Date).ToUniversalTime()Convert a Unix timestamp
Get-Date -UnixTimeSeconds 1577836800Identify