AlisonHollier Posted November 28, 2012 Posted November 28, 2012 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
Raybaudi Posted November 29, 2012 Posted November 29, 2012 Case( course start date > Date ( 1 ; 1 ; 2013 ) and course start date <= Date(12 ; 31 ; 2103 ) ; adminfee received ; 0 )
AlisonHollier Posted November 29, 2012 Author Posted November 29, 2012 fantastic thank you - you learn something new everyday!
LaRetta Posted November 29, 2012 Posted November 29, 2012 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.
Recommended Posts
This topic is 4435 days old. Please don't post here. Open a new topic instead.
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now