Advertisement
guyrleech

Get ISO 8601 week number

Jul 14th, 2020
482
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. ## Get ISO 8601 week number - Get-Date -UFormat %$V or %W are not reliable or flexible
  2. ## From Insomniac at https://stackoverflow.com/questions/46691143/get-the-iso-8601-week-of-year-of-a-given-date-in-powershell
  3.  
  4. (Get-Culture).Calendar.GetWeekOfYear( (Get-Date) ,[ System.Globalization.CalendarWeekRule]::FirstFourDayWeek , [DayOfWeek]::Monday )
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement