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 3131 days old. Please don't post here. Open a new topic instead.

Recommended Posts

Posted

FM 12, Adv. We have our meetings on the first Monday of each month. I’m trying to create a calculation field that returns the date of the first Monday in the month following the current date (system date). For example, if the current date is June 3, 2016 it would return June 6, 2016. Or, if the current date is June 17, 2016 it would return July4, 2016. Any suggestions?

Posted (edited)

Try =

Let ( [
today = Get ( CurrentDate ) ;
monthStart = Date ( Month ( today ) ; 1 ; Year ( today ) ) ;
firstMon = monthStart + Mod ( 2 - DayofWeek ( monthStart ) ; 7 ) ;
nextMonthStart =  Date ( Month ( today ) + 1 ; 1 ; Year ( today ) ) ;
nextFirstMon = nextMonthStart + Mod ( 2 - DayofWeek ( nextMonthStart ) ; 7 ) 
] ;
If ( today < firstMon ; firstMon ; nextFirstMon )
)

Make sure the calculation is unstored.

 

Edited by comment

This topic is 3131 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.