Jump to content
Claris Engage 2025 - March 25-26 Austin Texas ×
The Claris Museum: The Vault of FileMaker Antiquities at Claris Engage 2025! ×

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

Recommended Posts

Posted

I have a problem where I need to calculate to the next date of a particular weekday. Let say:

Start_Date = Monday, 8th December 2008

Period= 4 Weeks

Calc_End_Date = Must be the weekday of the Start_Date in a Period of 4 weeks (=5th of January '09)

If I use the Date Function, Day (Start_date + 28), it doesn't work always because it calculates the day not the weekday.

How do I calculate the weekdays if I want to use the Date function?

Thanks

Posted

If I use the Date Function, Day (Start_date + 28), it doesn't work always because it calculates the day not the weekday.

It's not quite clear what you're doing there. Day (Start_date + 28) will give you the day-of-the-month of the target day, i.e. 5 using your example (Jan 5, 2009). If you do the same for the month and the year, you should get the correct result at the end.

However, it's quite unnecessary to use the Date() function for this:

Start_Date + 7 * Period

should do the job.

Posted

Sorry if it wasn't clear,

Here my situation:

I need to calculate when a contract is finished. I have a start date and a period. The end date must fall on the same weekday as the start weekday. So, I need to calculate Weekday times period (4 Weeks = 28 days). For me its not clear what to use to get the right result.

This topic is 5875 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
×
×
  • Create New...

Important Information

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