Skip to main content
Form Fields

Bit Form – Date Time (Advanced) Field

Estimated reading: 12 minutes 741 views

The Bit Form Date Time (Advanced) field is a flexible date and time picker. Visitors can choose one date, a range or several dates, with or without a time, and you decide the display format, the saved format and which dates can be picked. It uses the same calendar in every browser.

Availability: Bit Form Pro.

When to use the Date Time (Advanced) field

Use it when the native Date, Time and Date-Time fields are not enough:

  • A check-in and check-out range, or several separate dates.
  • A display or saved format you choose, such as Oct 5, 2026 or 05/10/2026.
  • Limits that move with the current date, such as “from today to 60 days ahead”.
  • Blocked days, such as weekends or holidays, and other calendar options.

The panel header shows Date Time (Advanced); the field was called “Advanced Date Time” before.

Add the Date Time (Advanced) field

In the form builder, open Add Fields, then click Date Time (Advanced) in Advanced Fields or drag it onto the form. A new field has the label “Advanced Date Time”, the placeholder “Please Select a Date”, single-date mode and the saved format Y-m-d. See the Form Fields Overview.

Example: an Available Dates field

In the appointment booking form, Available Dates asks on which weekdays the client could come in. Visitors pick several dates, only from today on, and weekends cannot be picked. The field shows dates as Oct 5, 2026 and saves them as 2026-10-05.

Date time (advanced) calendar on the form with october 5, 7 and 9, 2026 selected and weekends grayed out
  1. The calendar with three weekdays selected. Weekends are grayed out, and weeks start on Monday.
  2. The chosen dates in the display format.

Common settings

The Date Time (Advanced) field also has the settings that most fields share. They work the same on every field, so they are explained once in Common Field Settings and Field Validation. Click a setting to read how it works:

The field has no Default value, Value Range or Read-only setting. Use Default Date, Minimum Date and Maximum Date in Basic Configuration instead.

Basic Configuration

Basic Configuration on the Basic tab holds the calendar options. The sections below explain each option with an example from the appointment booking form:

Basic configuration of a date time (advanced) field: calendar mode, view and value format, default, minimum and maximum date, and the allow input, enable time and hide calendar switches
  1. Calendar Mode: one date, a range or several dates. See Calendar Mode.
  2. View Format and Value Format: what visitors see and what is saved. See View Format and Value Format.
  3. Default Date: the date filled in when the form opens.
  4. Minimum Date and Maximum Date: the first and last date that can be picked. See Default, Minimum and Maximum Date.
  5. Allow Input, Enable Time and Hide Calendar. 24H Format appears when Enable Time is on.
  6. The Appointment Date field on the canvas.

Calendar Mode

ModeVisitors pickUse it forSaved value
Single (default)One dateAn appointment, a delivery date, a date of birth2026-10-14
RangeA start and an end dateHotel check-in and check-out, leave from and to, a rental period2026-10-14 to 2026-10-18
MultipleAny number of separate datesDays a client is available, sessions to attend2026-10-05, 2026-10-07

Example: Stay Dates (Range). A guesthouse booking form asks for the check-in and check-out date in one field. Set Calendar Mode to Range, and set Minimum Date to Current Date so a stay cannot start in the past:

Calendar mode set to range and minimum date set to current date for a stay dates field
  1. Calendar Mode: Range.
  2. Minimum Date: Current Date.
  3. The Stay Dates field on the canvas.

The visitor clicks the first and the last day. The days between are highlighted, and the field shows both dates. This calendar shows two months at once, set in Advanced Configuration:

Stay dates range picker with two months: october 14 to october 18 selected, shown as oct 14, 2026 to oct 18, 2026
  1. The chosen range in the View Format: Oct 14, 2026 to Oct 18, 2026.
  2. The calendar with October 14 to 18 selected.

For Multiple, see the Available Dates field in the example at the top of this page.

View Format and Value Format

  • Value Format is the format that is saved. Entries, emails, PDFs, Smart Tags and integrations receive the date in this format. The default is Y-m-d, for example 2026-10-14. Choose the format the receiving system expects, for example m/d/Y for a US spreadsheet.
  • View Format is the format visitors see in the field. Choose a readable one such as Wednesday, October 14, 2026 (l, F j, Y). With Select One, visitors see the Value Format.

In the overview figure above, Appointment Date shows Wednesday, October 14, 2026 on the form and saves 2026-10-14. Both lists offer the same 30 formats. Each entry shows a sample and its code in brackets:

CodeMeaningExample
Y / yYear, 4 or 2 digits2026 / 26
m / nMonth number, with or without a leading zero03 / 3
F / MMonth name, full or shortMarch / Mar
d / jDay, with or without a leading zero05 / 5
JDay with an ordinal suffix5th
l / DWeekday, full or shortThursday / Thu
H / hHour, 24-hour or 12-hour clock18 / 06
iMinutes30
KAM or PMPM

The codes are the flatpickr formatting tokens. You cannot type your own format in the list; a different dateFormat can be set in Advanced Configuration, but then Static dates and other settings must use that format too.

Default, Minimum and Maximum Date

Default Date fills in a date when the form opens. Minimum Date and Maximum Date set the first and last date that can be picked; dates outside the range are grayed out in the calendar. Each of the three has the same four options:

OptionDefault DateMinimum DateMaximum Date
NoneThe field starts emptyNo limit for past datesNo limit for future dates
Current DateTodayToday: past dates cannot be pickedToday: future dates cannot be picked
StaticA fixed date you pickA fixed first dateA fixed last date
DynamicRelative to Today (± Days): today plus the number you enter, for example 1 for tomorrow or -1 for yesterdayDays before today: today minus the number, for example 30Days after today: today plus the number, for example 60

Current Date and Dynamic dates are worked out when the visitor opens the form, so they move forward every day. Static dates use the Value Format, and they are converted when you change the Value Format.

Example: booking window (Current Date and Dynamic)

A clinic takes appointments from today up to 60 days ahead. In the overview figure above, Appointment Date has Minimum Date set to Current Date and Maximum Date set to Dynamic with 60 in Days after today. On October 2, the calendar allows October 2 to December 1:

Appointment date calendar on the form: past dates and dates more than 60 days ahead are grayed out, october 14 is selected and shown as wednesday, october 14, 2026
  1. The picked date in the View Format.
  2. Days before today are grayed out; today is circled.

Example: a recent incident (Dynamic minimum)

An insurance claim must be reported within 30 days. Date of Incident starts with today filled in, accepts dates up to 30 days back and no future dates:

Date of incident settings: default date current date, minimum date dynamic with 30 days before today, maximum date current date
  1. Default Date: Current Date.
  2. Minimum Date: Dynamic, 30 Days before today.
  3. Maximum Date: Current Date.
  4. The Date of Incident field on the canvas.
Date of incident calendar: today is filled in and later dates are grayed out
  1. Today’s date, filled in by Default Date.
  2. Days after today are grayed out. The previous month can still be opened for dates up to 30 days back.

Example: a fixed workshop week (Static)

A workshop runs from Monday, November 2 to Friday, November 6, 2026. Workshop Day allows only those days and suggests the first one:

Workshop day settings: default, minimum and maximum date set to static with november 2 and november 6, 2026
  1. Default Date: Static, 2026-11-02.
  2. Minimum Date: Static, 2026-11-02.
  3. Maximum Date: Static, 2026-11-06.
  4. The Workshop Day field on the canvas.

Click the Static box to pick the date from a calendar. On the form, the calendar opens on November and only the five workshop days can be picked:

Workshop day calendar: only november 2 to 6 can be picked and november 2 is filled in
  1. The default date, Monday, November 2, 2026.
  2. November 2 to 6 can be picked; all other days are grayed out.

Example: tomorrow by default (Dynamic default)

A florist delivers from the next day on. Delivery Date suggests tomorrow, and customers who already know the date can type it:

Delivery date settings: value format m/d/y, default date dynamic with 1 day relative to today, and allow input on
  1. Value Format: 03/15/2025 (m/d/Y), a format that is easy to type. View Format is Select One.
  2. Default Date: Dynamic with 1 in Relative to Today (± Days). Minimum Date is Current Date.
  3. Allow Input is on.
  4. The Delivery Date field on the canvas.
Delivery date field filled in with tomorrow's date 10/03/2026 and the calendar open
  1. On October 2, the field opens with 10/03/2026.
  2. Tomorrow is selected in the calendar.

Allow Input

By default, the field opens the calendar and visitors cannot type. Turn on Allow Input to let them type the date as well, which is faster for dates far away, such as a date of birth. Visitors type in the format the field shows, so use a simple numeric format such as m/d/Y, and mention it in the placeholder, as in the Delivery Date example above.

Enable Time and 24H Format

Enable Time adds hour and minute boxes below the calendar. 24H Format, shown when Enable Time is on, switches them from AM/PM to a 24-hour clock. Example: Appointment Slot asks for a date and a time during office hours:

Appointment slot settings: view format m/d/y h:i k, value format y-m-d h:i, enable time on and 24h format off
  1. View Format m/d/Y h:i K and Value Format Y-m-d H:i. Both include a time.
  2. Enable Time on, 24H Format off.
  3. The Appointment Slot field on the canvas.
Appointment slot calendar with the time picker below it, showing 10/14/2026 10:30 am
  1. The chosen date and time, 10/14/2026 10:30 AM. The entry saves 2026-10-14 10:30.
  2. The calendar with the time boxes. Minutes move in 15-minute steps between 9:00 and 17:00, set in Advanced Configuration.

Note: Choose a Value Format that includes a time. With a date-only format, the picked time is not saved. Current Date as a default with Enable Time starts at 00:00, not at the current time.

Hide Calendar (time only)

Turn on Enable Time and Hide Calendar for a time-only picker. Example: Pickup Time asks only for the time of day:

Pickup time settings: view format h:i k, value format h:i, enable time and hide calendar on
  1. View Format 3:30 PM (h:i K) and Value Format 15:30 (H:i): time-only formats.
  2. Enable Time on.
  3. Hide Calendar on.
  4. The Pickup Time field on the canvas.
Pickup time field with only a time picker, showing 5:30 pm
  1. The field shows 5:30 PM and saves 17:30.
  2. Only the hour, minute and AM/PM boxes open.

Default, Minimum and Maximum Date do not limit the time. To allow only some hours, use minTime and maxTime in Advanced Configuration.

Advanced Configuration

The field is built on flatpickr, an open-source date picker. Advanced Configuration on the Advanced tab passes extra flatpickr options to the calendar, for anything Basic Configuration does not cover: blocked days, week numbers, time steps and more. Options set here override Basic Configuration.

Click the code box to open the editor, enter the options and click Save:

Advanced configuration editor with options that disable weekends and start weeks on monday
  1. The Advanced Configuration box on the Advanced tab.
  2. The options in the editor.
  3. Save applies the options. Cancel discards them.
  • Write one JavaScript object in curly braces, with a comma after each option. Comments that start with // are allowed.
  • Write dates as text in the Value Format, for example "2026-12-25", and times as "09:00".
  • If the text is not a valid object, the field ignores it and uses Basic Configuration only.
  • Only English month and day names are included, so locale: "fr" does not work. Settings such as locale: { firstDayOfWeek: 1 } do.

Example: office hours in 15-minute steps

Appointment Slot from the Enable Time example accepts times from 9:00 to 17:00 in 15-minute steps:

Advanced configuration of an appointment slot field with minuteincrement 15, mintime 09:00 and maxtime 17:00
  1. minuteIncrement: 15 moves the minutes in 15-minute steps; minTime and maxTime set the earliest and latest time.
  2. The Appointment Slot field on the canvas.

Example: always-open calendar with week numbers and closed holidays

Event Dates shows the calendar permanently on the page, numbers the weeks and blocks two holidays:

Advanced configuration of an event dates field with inline, weeknumbers and disable options, and the link to the configuration options
  1. inline: true keeps the calendar open, weekNumbers: true adds a week column and disable lists dates that cannot be picked.
  2. The link to the flatpickr options under the editor.
  3. The Event Dates field on the canvas.
Event dates calendar always open with week numbers, three december dates selected and december 25 and 26 grayed out
  1. The chosen dates, saved separated by commas.
  2. The open calendar with week numbers; December 25 and 26 are grayed out.

More options

GoalOption
Block weekendsdisable: [(date) => date.getDay() === 0 || date.getDay() === 6]
Block holidaysdisable: ["2026-12-25", "2026-12-26"]
Allow only some datesenable: ["2026-10-05", "2026-10-12"]
Allow only a periodenable: [{ from: "2026-07-01", to: "2026-08-31" }]
Start weeks on Mondaylocale: { firstDayOfWeek: 1 }
Show two months side by sideshowMonths: 2
Time in 15-minute stepsminuteIncrement: 15
Allow times between 9:00 and 17:00minTime: "09:00", maxTime: "17:00"
Start the time picker at 9:00defaultHour: 9
Open the calendar above the fieldposition: "above"

See the flatpickr options reference for the full list.

What is saved

The field saves the dates in the Value Format:

  • Single: one date, for example 2026-10-05.
  • Range: the start and end date joined by “to”, for example 2026-10-05 to 2026-10-09.
  • Multiple: the dates separated by commas, for example 2026-10-05, 2026-10-07, 2026-10-09.

Entries, emails and integrations receive this text. Insert it in an email with its Smart Tag; see Smart Tags.

Limitations

  • The minimum and maximum dates are enforced in the calendar. The server only checks that a required field is not empty.
  • In Range mode, only the start date is compared with Minimum Date and Maximum Date when the form is validated.
  • Calendar translations other than English are not included.

FAQ

How do I allow bookings only from today to 60 days ahead?

Set Minimum Date to Current Date and Maximum Date to Dynamic with 60 in Days after today.

How do I collect a check-in and check-out date?

Set Calendar Mode to Range. The saved value contains both dates joined by “to”.

Why is the time missing from my entries?

The Value Format has no time. Choose a format with a time, such as Y-m-d H:i.

How do I stop visitors from picking weekends?

In Advanced Configuration, add disable: [(date) => date.getDay() === 0 || date.getDay() === 6]. See More options.

Share this Doc

Bit Form – Date Time (Advanced) Field

Or copy link

CONTENTS
Before you go
The #1 Affordable Form Plugin in the Industry

10,000+

Trusted Businesses

5 Star Rated

on WordPress.org
shield
No Risk: Get a “No-Questions-Asked” refund if Bit Form is not the right fit for your project.

Subscribe

×
Cancel