Newbies peter smith Posted February 1, 2005 Newbies Share Posted February 1, 2005 I have a week number field and a year field (both numbers) and I would like them to return the date for the monday of that week. Any suggestions Link to comment Share on other sites More sharing options...
BobWeaver Posted February 1, 2005 Share Posted February 1, 2005 Date(1;(Week-1)*7;Year)-DayOfWeek ( Date(1;1;Year) )+3 Link to comment Share on other sites More sharing options...
-Queue- Posted February 1, 2005 Share Posted February 1, 2005 Case( weeknumber and year; Date( 1; 1; year ) + 7 * (weeknumber - 1) - DayOfWeek(Date( 1; 1; year )) + 2 ) Link to comment Share on other sites More sharing options...
-Queue- Posted February 1, 2005 Share Posted February 1, 2005 Ah, Bob beat me, but he inspired this 'simplification'. Case( weeknumber and year; Date( 1; 7 * weeknumber - DayOfWeek(Date( 1; 1; year )) - 4; year ) ) Link to comment Share on other sites More sharing options...
Newbies peter smith Posted February 1, 2005 Author Newbies Share Posted February 1, 2005 sweet! thanks Link to comment Share on other sites More sharing options...
Ugo DI LUCA Posted February 2, 2005 Share Posted February 2, 2005 or... week * 7 + Date(1; 1; year) - DayOfWeek(Date(1;1; year))-5 Link to comment Share on other sites More sharing options...
Recommended Posts
This topic is 6627 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