After
Determine if the date is after the specified date.
Last updated
Was this helpful?
Determine if the date is after the specified date.
Last updated
Was this helpful?
Use the After
expression to determine if the date is after the specified date. Any time part of the date is ignored.
After("14-10-2010")
15-10-2010 08:00pm
True
Any time part of the date is ignored
After(DateAdd(Today,-1,'yyyy'))
15-10-2020 08:00pm
True
This checks if the date falls within the last year. Note, this only expects date values to be present in the Databox and will automatically convert date strings with no need for an AsDate qualifier.
Compare two fixed values using Company Data and Script DataDataboxes.
Read CompanyData.Expressions.Date (15-10-2016) and write into Examples.Date Run expression Examples.Date.After 14-10-2016 to check if it is after 14-10-2016 Display message.
Compare a fixed value using a Company Data Databox against a user entered date in a Script Data Databox.
User enters date and writes it into Script.Date01 Read CompanyData.Expressions.Date (15-10-2016) and write into Examples.Date Run expression Examples.Date.After Date01 to check if 15-10-2016 is after the user entered date
Compare two user entered dates in Script DataDataboxes.
User enters date and writes it into Script.Date01 User enters date and writes it into Script.Date02 Script.Date02 is written into Examples.Date Run expression Examples.Date.After Date01 check if Script.Date02 is after Script.Date01
Compare today's date against a user entered date in a Script Data Databox.
User enters date into Script.Date01 Run expression SystemValue.DateChecks.After to see if today is after the user entered date