jimliston Posted February 13, 2008 Share Posted February 13, 2008 I need to calculate the date of the first day of a calendar week. (Sunday, February 10 for example). It will obviously always be Sunday. I want to display it as: Work week beginning . I can get the week number easily, but how do I calculate that week's Sunday as a date and return it to my calculation? Thanks Jim Quote Link to comment Share on other sites More sharing options...
aaa Posted February 14, 2008 Share Posted February 14, 2008 Helo, Jim! Let([$var=Date(1;1;Year)+(Week_num-1)*7;$var=$var-DayOfWeek ( $var )];$var+1) It seems this works. I attached example too. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.