Skip to content
View in the app

A better way to browse. Learn more.

FMForums.com

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Next Month Calc

Featured Replies

I tried to get the next month name with a calculation field but I only got the current month name with this:

 

MonthName (Get ( CurrentDate ))

 

I thought adding "+ 1" at the end would move the result to the next month

 

Thanks for your tips

Let(

today = Get(CurrentDate);

MonthName(Date(Month(today) +1; Day(today); Year(today)))

)

  • Author

Many thanks!

Your calculation needs to be amended. Try something like

 

Date ( Month ( YourDateLay::date ) +1 ; Day ( YourDateLay::date ) ; Year ( YourDateLay::date ) ) result equals Date

 

Use the Inspector to display only the month

 

Doug you are too fast for me today. :)

Doug and Lee's results are in the right direction, but they'll get the wrong result during the last days of longer months: the calculation will return "March" on 31 January, for example. Try using 1 for the day of the month instead of Day ( Get ( CurrentDate ) ) instead:

 

Let ( [
    ~date = Get ( CurrentDate )
] ;
    MonthName ( Date ( Month ( ~date ) + 1 ; 1 ; Year ( ~date ) ) )
)
 

Duh. Nice catch Jeremy.

What do you think about:

 

MonthName ( Get ( CurrentDate ) - Day ( Get ( CurrentDate ) ) + 32 )
 

?

MonthName ( Get ( CurrentDate ) - Day ( Get ( CurrentDate ) ) + 32 )

 

Clever, possibly too clever for its own good. While correct and possibly more performant, it's less obvious what the intention of the calculation is if the next maintenance developer doesn't already know, but this is simple enough for that to be OK with a good explanatory comment (which I'd feel the need to add even to my own in a production solution): /* name of next month */

Create an account or sign in to comment

Important Information

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

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.