Date Range Fields enable you to set a duration of time with a start and end value. 

The start and end values, similar to Date/Time Fields, hold a date, hour, and minute value. 

Sample Date Range Field:

2022-01-19_22-52-18.png

Creating a Date Range Field

To add a new Date Range Field to your data table, click on the Date Field type category on the Date category and select the Date Range field type from the drop-down list.

2022-01-18_01-00-59.png

When creating a Date Range Field, there are several settings you can customize such as those highlighted in the image below.

2022-01-18_01-03-30.png

  1. Name- this is where you can name your Date Range field. For instance, "Vacation Request" or "Appointment Time".

  2. Description- this is where you can optionally provide a brief description of this field for your own reference. 

  3. End Date/Time Format- this is where you can choose the formatting for how the end date and time will be entered on a form component. While the Start Date Format will always display as a Date/Time Field on forms, you have the option to prompt your users to select an End Date/Time Format of either a Date/Time field, Time Field, or Duration Field.

    At default, end Date/Time formatting is set to show a Date/Time field. on forms This means that on a form component, users will be prompted to choose an end date and time with a Date/Time field format. Keeping the End Date/Time Format as the default Date/Time field formatting is useful for when you would like to prompt your users to select a date and time as the end date on a form. For instance, if you have an Employee Management application where users can request time off, you will choose the default Date/Time field as the end Date/Time format to enable users to select a date and time for their last vacation day. 

    ez-gif-date-range-datetime-gif.gif

    There may be circumstances when you want to prompt your users to select a Duration field as their end date/time on a form. This can be useful in circumstances when the end date is the same and the start date and you want to prompt users to select a specific time duration as the end date/time. For instance, if you have an appointment scheduler application to coordinate appointments for a doctor's office, you will choose the Duration field as the end date/time format to enable employees/schedulers to schedule appointments with specific time duration such as 30 minute appointments or 1 hour appointments.

    ezgif-date-range-duration-gif.gif


    Alternatively, there may be circumstances when you want to prompt your users to select a Time field as their end date/time on a form. This can be useful in circumstances where the end date is the same date as the start date and you want to prompt users to select a specific time as the end date/time. For instance, if you have an Event Management application and would like to schedule events that are contracted to end at specific times on the event day, you would choose the Time Field end date/time format to display a Date/Time Field as the start date and only a Time Field as the end date.

    ezgif-date-range-time-gif.gif

    End Date/Time Format settings will only affect how end Date/Time Fields are entered on a form. This setting does not affect how end Date/Time Fields saved within a form will be displayed when viewed within other components. When displayed, both start and end values will be displayed as Date/Time Fields.