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.

Change Month

Featured Replies

I am putting together a simple calendar and i'm having trouble scripting a button to advance my global master date field to the first day of the next month. This field will only have the date of the first of any given month.

My first idea was the following script using another field "gMain Month" that is a calc to give me the month name based on the "gMain Date" field:

If ( Calendar::gMain Month = "January" ; Calendar::gMain Date + 31 ; If ( Calendar::gMain Month = "February" ; Calendar::gMain Date + 28 ;If ( Calendar::gMain Month = "March" ; Calendar::gMain Date + 31 ; If ( Calendar::gMain Month = "April" ; Calendar::gMain Date + 30 ; If ( Calendar::gMain Month = "May" ; Calendar::gMain Date + 31 ; If ( Calendar::gMain Month = "June" ; Calendar::gMain Date + 30 ; If ( Calendar::gMain Month = "July" ; Calendar::gMain Date + 31 ; If ( Calendar::gMain Month = "August" ; Calendar::gMain Date + 31 ; If ( Calendar::gMain Month = "September" ; Calendar::gMain Date + 30 ; If ( Calendar::gMain Month = "October" ; Calendar::gMain Date + 31 ; If ( Calendar::gMain Month = "November" ; Calendar::gMain Date + 30 ; If ( Calendar::gMain Month = "December" ; Calendar::gMain Date + 31 ) ) ) ) ) ) ) ) ) ) ))

Edited by Guest

Try:

Set Field [ gMainDate ; Date ( Month ( gMainDate ) + 1 ; 1 ; Year ( gMainDate ) ) ]

  • Author

Works great...Thanks

Why is it necessary to have the words "month" and "year" in the calc? I always thought you should replace that stuff with the actual data or fields the calc is looking for but when I remove them it does not work.

Greg,

Those are Functions.

Date ()

Month()

Year()

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.