How to get the week number in linux using gawk with different first day of the week? the
date command can give me the week number with
+%V but it is based on Monday (1-53) or
+%U (based on Sunday, 0-53).
I tried to to do this:
date -d "ddmmyy+2days" +%V, but the result is not correct. I want the first day of the week is based on Saturday.
EDIT: add the criteria The first day of the week in my place is Saturday, and the first week is depend on the number of the day to the nearest Saturday. If the current week have less than 4 days before the nearest Saturday, then it will be counted to the last year week (52/53). It is the same with the week in the end of the year.