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

PowerTip: Use PowerShell to Display Date, Time, and Hour

$
0
0

Summary: Use Windows PowerShell to display date, time, and hour in 24-hour format.

Hey, Scripting Guy! Question How can I use Windows PowerShell to get the hour of the day in 24-hour format?

Hey, Scripting Guy! Answer Use the Get-Date cmdlet and specify the “%H” pattern to the UFormat parameter (H is case sensitive):

get-date -UFormat "%H"


Viewing all articles
Browse latest Browse all 3333

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>