General information
Category:
Coding, syntax & commands
Title:
Strange result using Week()
Hi.
1. Week(^{2005/01/01},3,2) Returns 52
2. Week(^{2005/01/02},3,2) Returns 52
3. Week(^{2005/01/03},3,2) Returns 1
Surely 1 & 2 above are returning an incorrect week no.
The second parameter indicates Seven Days, the third to start on a Monday
Its probably because it considers it as Week 52 of last year (?) but the fact that I have 2005 in the year , should'nt this return a zero ?
(.i.e the 1st and 2nd of Jan 2005 dont belong to any week IN 2005 if Monday 3rd is the first day of the year)
Regards,
Gerard
Next
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only