Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Week of year to date

Status
Not open for further replies.

mikkom

Technical User
Jul 23, 2010
29
FI
I have dates in database so that there is a year and a week of the year, for example 201029. And I need a formula that calculates first day of the week, for example 201029 -> 19-jul-2010 (monday). Is it possible to make a formula to do that?
 
YOu can add weeks to 1st of year

@date
dateadd("ww", tonumber(right(datefield,2)), date(tonumber(left(datefield,4),01,01)

then determine day number to back calculate prior monday

@monday
dateadd("d", -(7-(Dayofweek(@date)))+1), @date)

Ian

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top