Get-Date -UFormat %W does not match reference implementation #20978
Labels
In-PR
Indicates that a PR is out for the issue
Needs-Triage
The issue is new and needs to be triaged by a work group.
WG-Cmdlets-Utility
cmdlets in the Microsoft.PowerShell.Utility module
Prerequisites
Steps to reproduce
Get-Date -UFormat %W
Currently,
dateTime.DayOfYear / 7
is being used, but the code below is a better match. See Date conversion specifiers or strftime.Expected behavior
Actual behavior
Error details
No response
Environment data
Visuals
No response
The text was updated successfully, but these errors were encountered: