
bgeus
New User
Jun 7, 2010, 5:24 AM
Post #3 of 7
(1891 views)
|
|
Re: [Bianca] DateTime / changing start of week
[In reply to]
|
Can't Post
|
|
Sorry guess I was a bit vague :) The problem is that the week numbers change when the start of the week is changed. E.g. if Monday is the first day in week 10, then the Sunday before would be in week 9. However, if Sunday is the first day of the week, that same Sunday would be in week 10 instead of 9. So I want to be able to use DateTime to say my date is that Sunday, truncate to week and when I ask the date, get the starting day of week 10 (that Sunday), instead of 9 (Monday week ago). Hope that makes more sense :) I know there is a way around it, but was wondering if it was possible with a package that deals with dates already.
|