john9210 Posted July 5, 2016 Posted July 5, 2016 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?
comment Posted July 5, 2016 Posted July 5, 2016 (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 July 5, 2016 by comment
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now