Jump to content

from week to date


This topic is 7849 days old. Please don't post here. Open a new topic instead.

Recommended Posts

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

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

This topic is 7849 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 account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.