-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Document Request: Get-Date -UFormat %G and %g (week year) #7181
Copy link
Copy link
Closed
Milestone
Description
Summary of the new document or enhancement
- List of articles that need to be updated: /reference/7.?/Microsoft.PowerShell.Utility/Get-Date.md
- New articles that need to be created: (none)
- Link(s) to related code PR(s) in the PowerShell/PowerShell repo: #4750 Fix Get-Date -UFormat %G and %g behavior PowerShell/PowerShell#14555
- Link(s) to related issue(s) in the PowerShell/PowerShell repo: Get-Date -UFormat inconsistencies compared to Linux strftime PowerShell/PowerShell#4750
Description of what changed
The year of the ISO8601 week date doesn't always match the calendar year. For example 2005-01-02 is 2004-W53-7 using that system. 📺. This change provides the correct year for that system, %G for the full year number and %g for a two-digit year.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels