Spencer Posted February 15, 2001 Share Posted February 15, 2001 Is it possible when I enter the weeknumber in a field it calculates the first and last day in the week? Like: week = 29 Then it will calculate: first day =13-7-1998 last day =19-7-1998 There is a day to week function in filemaker but not the other way arround. Link to comment Share on other sites More sharing options...
BobWeaver Posted February 16, 2001 Share Posted February 16, 2001 You can use this formula: FirstDay = Date(1, 7*(Weekofyear-1)+1, TheYear) - DayofWeek(Date(1, 1, TheYear))+1 LastDay = FirstDay+6 This works because FileMaker lets you enter a day of the month greater than 31 and automatically rolls it over to the appropriate month. Link to comment Share on other sites More sharing options...
Recommended Posts
This topic is 8464 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