Skip to main content

How do I set up a Date/Time question?

Learn how to add a date, time, or date and time question to your form and set up validations to control the values users can enter.

Written by Jessica Franco

The Date/Time question lets users manually enter a date, a time, or both in a form.

It's useful when you need to record a moment that may differ from when the form is completed, for example:

  • The date and time an incident occurred.

  • The next scheduled inspection of a machine.

  • The estimated start or end time of an activity.

  • The date a maintenance task was performed.

💡 Important: DataScope automatically records the exact date and time each form is completed, as part of its audit system. This question lets you collect an additional date or time entered by the user.


⚙️ How do I add a Date/Time question?

  1. Open the Form Builder and select the form you want to edit.

  2. Click Add new question and select the Date/Time type.

  3. Fill in the following fields:

    • Title: the name of the question. It's shown when answering and in reports and exports.

    • Description: instructions or additional information to guide the person answering. It's optional and appears below the title, in the app and in the web form.

  4. Under Type, select the information you need to collect:

    • Date only: lets users select a date.

    • Time only: lets users select a time.

    • Date and time: lets users select both.

  5. Set up the additional options:

    • Required: the user must answer the question to continue.

    • Skip questions: sets which question the form goes to based on the answer.

    • Add validation: sets limits to control the dates or times users can enter.

  6. Click Save.


✅ What validations can I set up?

Validations restrict the dates or times that can be entered. They're set up on the web platform and apply when answering from both the app and the web form. If the answer doesn't meet the rule, it can't be submitted.

Under Validation type, you can choose Fixed range or Relative range.

1. Fixed range

Compares the answer with a limit you set based on the current moment. It has two types of conditions:

Predefined conditions

Quick options that don't require setting up a range:

  • Today only: only lets users select the current date.

  • Don't allow future dates: prevents selecting dates after the current moment.

  • Don't allow past dates: prevents selecting dates before the current moment.

Custom conditions

Let you set specific limits with an offset in hours:

  • After: the value must be later than the limit set.

  • On or after: the value must be equal to or later than the limit set.

  • Before: the value must be earlier than the limit set.

  • On or before: the value must be equal to or earlier than the limit set.

  • Between: the value must be within the range set.

  • Not between: the value can't be within the range set.

Example: if an activity can be recorded up to 24 hours after the current moment, use a custom condition with a 24-hour offset.

2. Relative range

Compares the answer with another date or time question in the same form. For example, that the "End date" is later than the "Start date" plus a time margin.

How to set it up

  1. In the question, open Add validation.

  2. Under Validation type, select Relative range.

  3. Choose the reference question and the comparator.

The reference question must be the same type: date, date and time, or time.

Available comparators

  • After

  • On or after

  • Before

  • On or before

  • Between

  • Not between

  • Between question and offset

While answering, the notice shows the already calculated limit, for example, the earliest allowed date. If the answer doesn't meet the rule, the notice shows the limit that wasn't met.

It works on the web platform and in the app, even offline, and also inside groups of repeatable fields. In the app, it's available starting with version 4.11.0.

📱 How is it shown when answering?

The question appears with a picker to choose the date, the time, or both, depending on the settings you defined. The way you move through the form may vary depending on the form experience enabled in the account.

Did this answer your question?