Matthew R White Posted March 18, 2014 Posted March 18, 2014 Trying to calculate next month in a field with the following calculation Month (Get (CurrentDate) + 1 Not working
LaRetta Posted March 18, 2014 Posted March 18, 2014 Try this ( calculation, unstored, NUMBER ) Let ( d = Get ( CurrentDate ) ; Month ( Date ( Month ( d ) + 1 ; 1 ; Year ( d ) ) ) ) With dates, it helps to use real dates so they span the 12-month barrier easier. Oh wait, you can cross the month barrier using Mod() Mod ( Month ( Get ( CurrentDate ) ) ; 12 ) + 1 2
Rick Whitelaw Posted March 18, 2014 Posted March 18, 2014 Trying to calculate next month in a field with the following calculation Month (Get (CurrentDate) + 1 Not working You're missing the right parenthesis before "+1"
LaRetta Posted March 18, 2014 Posted March 18, 2014 Nice spotting of it, Rick! Unfortunately it can still break if the month is December. It will say it is month 13 which is why I just went ahead and created the alternatives. It has caught me before!! :-)
Rick Whitelaw Posted March 19, 2014 Posted March 19, 2014 Nice spotting of it, Rick! Unfortunately it can still break if the month is December. It will say it is month 13 which is why I just went ahead and created the alternatives. It has caught me before!! :-) Yup.
Recommended Posts
This topic is 3959 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