The date text field creates a input with a type="date" on the page. Each browser controls the display of this field and it will function slightly different from browser to browsers.
Min Date and Max Date Properties
The Min and Max dates can be set by entering the number of days from the current date. For example, if you enter -7 for the min date, then it will be set as 7 days before the current date. If you set the max date to 21, then the max date will be set to 21 days from the current date. Setting the value of 0 would set the date to the current date.
Note: Not all browsers support the min and max properties
Conditional Logic.
The date field has it's own conditional logic conditions that are unique to this field.
Static Dates:
To compare a Date field to a static date, select the Date field, choose a comparison operator, and enter the static date to compare against.
If date entered is greater than April 01, 2022
Note: Date format must be entered as YYYY-MM-DD
Relative Dates:
Comparing date input to relative dates is done using the merge tag {today}. It allows conditional logic to be applied to fields based on whether the selected date is, is not, is greater than or is less than the current date.
If date entered is equal to today
The {today} merge tag supports modifiers for making date comparisons like:
- Date is at least 2 weeks away: {today:+2 weeks}
- Date is no more than 90 days before today: {today:-90 days}
Valid time periods for the modifiers are:
- days
- weeks
- months
- quarters
- years
Days of the Week
Use the following merge tags to check for a specific day of the week: {sunday}, {monday}, {tuesday}, {wednesday}, {thursday}, {friday}, {saturday}.
Sunday = 0
Monday = 1
Tuesday = 2
Wednesday = 3
Thursday = 4
Friday = 5
Saturday = 6
Date Wildcards
If you want to target a specific day of the month, a specific month, or a specific year, you can use the * character as a wildcard.
If date entered is within the month of October of any year
If date entered is the 5th day of any month
If date entered is in the year 2022