March 28, 200520 yr I'm trying to figure out how to calculate a date from a week #. I have a simple calendar that I can switch from one week to the next. So if I am on week 14 I want it to calculate the date of Monday on that week (3/28/2005). Thanks,
March 28, 200520 yr Assuming your week# is the same as Filemaker's WeekOfYear, and that it refers to the current year, the date of Monday is: Date ( 1 , 1 , Year ( Status (CurrentDate) ) ) - DayOfWeek ( Date ( 1 , 1 , Year ( Status (CurrentDate) ) ) ) + 7 * ( week - 1 ) + 2
March 28, 200520 yr Author Thanks, that worked. Only problem is I don't understand exactly how it worked. Is there any chance you could just line item what it is doing in lay terms? Thanks so much.
March 28, 200520 yr // THE DATE OF NEW YEAR Date ( 1 , 1 , Year ( Status (CurrentDate) ) // MINUS THE DAY OF WEEK OF NEW YEAR - DayOfWeek ( Date ( 1 , 1 , Year ( Status (CurrentDate) ) ) ) // IS THE SATURDAY BEFORE NEW YEAR + 7 * ( week - 1 ) // IS THE SATURDAY BEFORE THIS WEEK + 2 // IS THE MONDAY THIS WEEK
Create an account or sign in to comment