sdawson
Registered User.
- Local time
- Today, 23:21
- Joined
- Apr 22, 2003
- Messages
- 165
Does anyone have code that will calculate the week of the year as per ISO8601?
viz. If 1st January is on a Friday, Saturday or Sunday then this is not week 1. It is week 52 or possibly week 53 of the previous year.
=Format(Now(), "ww") is displayed as week 1 even if 1st January is a Sunday!
This is for the week Monday to Sunday.
http://en.wikipedia.org/wiki/ISO_8601#Week_dates
This link may explain it better!
Help.

viz. If 1st January is on a Friday, Saturday or Sunday then this is not week 1. It is week 52 or possibly week 53 of the previous year.
=Format(Now(), "ww") is displayed as week 1 even if 1st January is a Sunday!
This is for the week Monday to Sunday.
http://en.wikipedia.org/wiki/ISO_8601#Week_dates
This link may explain it better!
Help.

Last edited: