I’m trying to get the correct weeknumber of the current week.
Unfortunately, with the following command, it always adds 1 to the result :
It seems related to the ISO 8601.
When I put CultureInfo.InvariantCulture.DateTimeFormat.CalendarWeekRule into a MessageBox I get “FirstDay”
And from what I understood, it should be “FirstFourDayWeek” to work correctly.
So… I’m wondering what’s wrong…
Because on one hand I could not find a solution with UiPath, and on the other hand weeknumber is used by a lot of people.
Has anyone found a solution to get the correct weeknumber for 2021 ?
Or maybe a way to change the CalendarWeekRule to “FirstFourDayWeek” ?
PS : Hope I’m at the correct place/with the correct tags… ?