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.

Date Calculation

Featured Replies

  • Newbies

Again, since I'm a beginner I'm still having a hard time getting some points; bear with me :

I'm trying to do a simple calculation where if the "enter date" field is between the 1st and the 15th the "display date" field reads 8/15/00 for example. And if the "enter date field" is after the 16th then the display date should reade 8/31/00. I also have a "date override" field where any date I input here should appear in the "display date" field regardless of what is it and it should display itself as such, like 8/2/00 without being rounded.

I hope this does not sound too confusing. It will probobly be easy for those FM wizzes. Thanks again,

Monica

Monica,

Give this a try.

Case(

not IsEmpty(Date Override), Date Override,

Day(Enter Date) * 15, Date(Month(Enter Date), 15, Year(Enter Date)),

Day(Enter Date) > 15, Date(Month(Enter Date), Day(Date(Month(Enter Date + 17), 1, Year(Enter Date + 17)) - 1), Year(Enter Date)),

""

)

The trick is to find the last day of the month, taking into account 30 and 31 day months and Februarys in leap years. The easiest way to do this is go the the first of the next month and subtract one day. -bd

Create an account or sign in to comment

Important Information

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

Account

Navigation

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.