Introduction
If you are using our Date/Time predefined content field to collect date and time information from your respondents, you might be want to know how that field will be validated.
The overview and example sections below provide a quick overview of what date/time formats are accepted.
Date/Time Validation Overview
When using our Date/Time predefined content field, the following values will be considered valid. Please note that this validation is case insensitive if letters (e.g. AM, PM) are being submitted.
- Date followed by 12 hour time
- Date followed by 24 hour time
- 12 hour time followed by date
- 24 hour time followed by date
- Just date
- Just 12 hour time
- Just 24 hour time
Examples of Valid Dates & Times
Please see the sections below for a detailed explanation on how these valid examples are determined by the regex validation rule.
The following examples are valid 12 hour times:
- 1:00pm
- 1-00pm
- 1 00pm
- 100pm
- 1pm
- 12:59p
- 12-59p
- 12 59p
- 1259p
The following examples are valid 24 hour times:
- 01:00:00
- 1:00:00
- 01-00-00
- 1-00-00
- 13:00
- 13-00
- 13 00
- 1300
- 130000
The following examples are valid dates:
- January 2nd 2017
- Jan 2nd 2017
- 1/2/17
- 1/2/2017
- January
- January 2
- 2 January
- 2/1/17
- 2-1-17
- 2017/1/2
- 17/1/2