How to Format Dates in PowerShell (Get-Date -Format Examples)
To format a date in PowerShell, pass a format string to Get-Date -Format. MM is the month, dd the day, yyyy the year, HH the hour on a 24-hour clock and mm the minutes: Output: Every example here uses the same fixed date, September 28, 2026 at 2:05:09 PM, so your output will match mine. … Read more