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.

Calculation involving date ranges

Featured Replies

HI everyone

 

Im trying to do a field calculation which involves a date range - however I cant work out how to right an operator for a date range between 2 dates.

 

I have something like this:

 

If(course start date > Date ( 1 ; 1 ; 2013 ) <= Date(12 ; 31 ; 2103 ) ; adminfee received; 0)

 

What am I doing wrong please...

Basically if the course start date is between 01.01.2013 and 31.12.2103 then i want the admin fee to appear - if not to put a 0

 

thanks for your help

alison

Case(

course start date > Date ( 1 ; 1 ; 2013 ) and course start date <= Date(12 ; 31 ; 2103 ) ; adminfee received ;

0

)

  • Author

fantastic thank you - you learn something new everyday!!!!

What will you do next year?

Basically if the course start date is between 01.01.2013 and 31.12.2103

If 'between' those dates should not 1.1.2013 be included? Then calc should not be course start date > Date ( 1 ; 1 ; 2013 ) but rather >= (*greater than or equal to). And as pointed out, hard-coding the date isn't good idea because a developer will need to open the calc and change it every year (if it isn't forgotten).

Would it be safe to say that, if the CourseDate is dated one year following the current year then it should have AdminFee applied?

* I cannot make the FM symbol of >= (on ipad) which is equal sign with slash through it.

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.