Jump 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.

Featured Replies

Anyone know how to get date of the 1st of current month?

For example, todays date is 06/15/2010.

I want calc. to produce date of 06/01/2010.

Thank you!

dateField - Day ( dateField ) + 1

or for current date, make an unstored calculation (date ) using Get(CurrentDate) in place of your date field.

UPDATE: How FM interprets ... dateField - Day ( dateField) produces date of 6/0/2010 which FM translates to the last day of the prior month. Then +1 brings the date forward to first day of this month. Technique learned from Comment quite some time ago and now replicated as one of the coolest techniques out there.

Edited by Guest

  • Author

Awesome tip! My final calc. looks like this:

Get ( CurrentDate ) - Day (Get ( CurrentDate )) +1

You should also be aware of the date function:

Date( Month; day; year)

Like this:

Date( month( get(currentDate)); 1; year( get( currentDate)) )

  • Author

BruceR thank you. Very straight forward and clean, you're right, I do need to be aware of this.

Thanks. The date function is very useful and there are some cool but not-quite-obvious features.

Like - how do you get the last day of the month?

The last day of a month is day zero of the next month:

date( 5 ; 0; 2007)

result: 4/30/2007

date( 6; 366; 2010)

result: 6/1/2011

Edited by Guest

Create an account or sign in to comment

Important Information

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

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.