DateTime Field for Gravity Forms
The GravityWP DateTime Field add-on adds a dedicated Date/Time field to Gravity Forms. It allows users to enter both a date and a time in one field instead of using separate inputs.
This is useful for forms where the exact date and time matter, such as appointments, bookings, scheduling forms, event forms, and deadline-based workflows.
The field also includes Not before and Not after settings, so you can control the earliest and latest allowed value. These settings support merge tags, which makes it possible to create dynamic date and time rules based on other fields in the same form.

The DateTime Field gives you one field for collecting:
- a date
- a time
Instead of asking users to complete separate date and time inputs, you can collect one combined value in a simpler format.
Submitted values use this format:
YYYY-MM-DD HH:MM:SS
Example:
2026-04-10 10:00:00
DateTime Field for Gravity forms limits
The field includes a Date/Time Limits section in its field settings.
You can use:
| Setting | What it does |
|---|---|
| Not before | Sets the earliest allowed date and time |
| Not after | Sets the latest allowed date and time |
These settings are useful when a form should only accept values inside a specific date and time window.
Examples:
| Use case | Example |
|---|---|
| Booking window | Only allow bookings from 9:00 AM onward |
| Deadline control | Stop users from choosing a date after a deadline |
| Start/end scheduling | Make sure an end date and time cannot be earlier than a start date and time |

Using DateTime Field fixed limits
You can enter a fixed value directly into Not before or Not after.
Example:
| Setting / Value | Result |
|---|---|
| Not before | 2026-04-08 09:00:00 |
| Not after | 2026-04-09 17:00:00 |
2026-04-08 08:00:00 | Rejected |
2026-04-09 18:00:00 | Rejected |
| Value inside the range | Accepted |
When a submitted value is outside the allowed range, the field shows a clear validation message.
Example messages:
| Condition | Validation message |
|---|---|
| Value is earlier than Not before | Please enter a date/time on or after 2026-04-08 09:00:00. |
| Value is later than Not after | Please enter a date/time on or before 2026-04-09 17:00:00. |
Using merge tags in limits
This makes it possible to create dynamic rules based on another field in the same form.
A common example is a form with:
- Start Date and Time
- End Date and Time
In this setup, you can set the End Date and Time field’s Not before value to the merge tag for Start Date and Time.
That means the form will only accept an end value that is equal to or later than the selected start value.
Example
| Field setup | Value |
|---|---|
| Field 1 | Start Date and Time |
| Field 2 | End Date and Time |
| End field setting | Not before = merge tag for Start Date and Time |
| Start value | End value | Result |
|---|---|---|
2026-04-10 10:00:00 | 2026-04-10 09:00:00 | Rejected |
2026-04-10 10:00:00 | 2026-04-10 11:00:00 | Accepted |

DateTime Field for Gravity Forms – Validation behavior
The DateTime Field validates submitted values against the configured limits.
Values outside the allowed range are blocked during submission, and the form shows a clear validation error under the field.
This applies to both:
| Validation applies to | Supported |
|---|---|
| Fixed limits | Yes |
| Merge-tag-based limits | Yes |
That makes the field useful for workflows where the order of date and time values matters.
When to use this field
The DateTime Field is a good fit when your form needs one combined date and time value.
Common use cases include:
| Common use case | Why it fits |
|---|---|
| Appointment requests | Collect one combined date and time value |
| Booking forms | Restrict allowed date/time ranges |
| Event scheduling | Keep scheduling inputs consistent |
| Registration windows | Limit submissions to an allowed period |
| Start and end scheduling | Prevent the end value from being earlier than the start |
| Deadline-based forms | Block values after a cut-off date and time |
Notes
- The field uses one combined date and time input.
- The limit settings support both fixed values and merge tags.
- Submitted values use the format
YYYY-MM-DD HH:MM:SS.
DateTime Field for Gravity Forms – FAQ
Yes. The field is useful for booking and scheduling forms because it collects both date and time in one input and supports allowed date and time ranges.
Not before sets the earliest allowed value.
Not after sets the latest allowed value.
Yes. You can use a merge tag from another field to define the minimum allowed value for a DateTime field.
The form shows a validation error and blocks submission until the value matches the configured range.
Submitted values use this format:YYYY-MM-DD HH:MM:SS