InformationTitleRouter - Checking Relative DatesURL NameRouterCheckingRelativeDates6901fcfcd9957Step-by-StepContents OverviewOperatorsDate/Time Field Falls Within the Past X Days (Including Today)Date/Time Field Falls Within the Next X Days (Including Today)Date/Time Field is X or More Days Before TodayDate/Time Field Is X or More Days After Today Overview This guide will show you how to set up a Relative Date in the routing graph. Operators When comparing dates or date/times, you can use the following operators: OperatorDescriptionOn / AtOn a specific date / at a specific timeNot on / NotThe date or date/Time is not the same as the field valueAfterAfter the date or date/TimeOn or after / At or afterOn or after the date or date/timeBeforeBefore the date or date/timeOn or before / At or beforeOn or before a date / at or before a date/timeIs NullThe date or date/time field is blankNot NullThe date or date/time field is not blank Common Date/Time Comparisons Checking if a Date/Time Field Falls Within the Past X Days (Including Today) Replace X with the number of days needed for your specific case. Select the date/time field and operator, then click Insert > Relative dateSet the operator to "On or After"Enter the number of days and select "Before Today" to check data from the last X daysClick "Add Condition" to add a second conditionSelect the same date/time field and set the operator to "On or Before"Set the relative date to "Today" Example: checking if the value is within the last 3 days 1. (Date on or after [!Datetime.daysAfter([!Datetime.today()],-3)]) 2. (Date on or before Today) Rule Logic 1 AND 2 Checking Whether a Date/Time Field Falls Within the Next X Days (Including Today) Replace X with the number of days needed for your use case. Select the date/time field and operator, then click Insert > Relative dateSet the operator to "On or before"Enter the number of days and select "After Today"Click "Add Condition"Select the same date/time field and set the operator to "On or after"Set the relative date to "Today" Example: checking if the value is within the next 3 days 1. (Date on or before [!Datetime.daysAfter([!Datetime.today()],3)] 2. (Date on or after Today) Rule Logic 1 AND 2 Checking if a Date/Time Field is X or More Days Before Today Replace X with the number of days needed for your use case. Select the date/time field and operator, then click Insert > Relative dateSet the operator to "On or Before"Enter the number of days and select "Before Today" to check dates that are X or more days in the past Example: checking if the value is 3 days or more before today 1. (Date on or before [!Datetime.daysAfter([!Datetime.today()],-3)]) Checking if a Date/Time Field Is X or More Days After Today Replace the number of days in X as needed for your use case. Select the date/time field, operator, and click on Insert > Relative dateThe operator must be "On or After"Put the number of days, select "After" Today to check the data from the Last X number of days Example: checking if the value is 3 days or more after today 1. (Date on or after [!Datetime.daysAfter([!Datetime.today()],3)]) For questions or additional assistance please contact LeanData Support.