jrp Posted November 26, 2003 Posted November 26, 2003 Seems like this should be simple, but I'm stumped. I have the Week of Year (44), and the Year (2003), and I would like to calculate the date of the Sunday of that week (10/26/03). Possible? Many thanks in advance.
BobWeaver Posted November 26, 2003 Posted November 26, 2003 Date(1,(Weekofyear-1)*7,Year)-DayofWeek( Date(1,1,Year))+2 I haven't given this a thorough test. but if it works for weeks 1, 52 and 53 for seven consecutive years, it should work for everything.
Ugo DI LUCA Posted November 26, 2003 Posted November 26, 2003 Try this : WeekOfYear * 7 + Date(1, 1, Year) - DayOfWeek(Date(1, 1, Year))-6
Ugo DI LUCA Posted November 26, 2003 Posted November 26, 2003 You beat me to this Bob Was testing it and chatting a lot. Now, I've tested both and both are working.
jrp Posted November 29, 2003 Author Posted November 29, 2003 Dang, I wish my brain worked like that. Thank you both!
Recommended Posts
This topic is 8009 days old. Please don't post here. Open a new topic instead.
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now