Quantcast
Channel: Hey, Scripting Guy! Blog
Viewing all articles
Browse latest Browse all 3333

PowerTip: Use PowerShell to Display Time in 24-Hour Format

$
0
0

Summary: Use Windows PowerShell to display the current time in 24-hour format.

Hey, Scripting Guy! Question How can I use Windows PowerShell to display the current time in 24-hour format?

Hey, Scripting Guy! Answer Use the Get-Date cmdlet and the –UFormat parameter with %R:

Get-Date -UFormat %R


Viewing all articles
Browse latest Browse all 3333

Trending Articles