Skip to main content
CalcBuilder logo

CalcBuilder Tutorial

Calc Builder field type: Date

The Date field shows a calendar picker and validates the entry against your date format.

A Date field — clicking it opens a calendar.
A Date field — clicking it opens a calendar.

Key settings

  • The display format follows Date format on the calculator Preferences tab (e.g. d/m/Y).
  • Use a mask (Date 00/00/0000) if you want a plain typed date.

In code

$variable holds the string the visitor picked. Convert it with DateTime::createFromFormat('d/m/Y', $variable) to do date maths (age, days between, due date).

Part of the Form Fields reference. All types are demonstrated together in the Field Types Showcase.

...
List Manager

Build different lists for your site

Buy now!
...
Support/development 40 hours

With the peace of mind of having a professional team at your service (20% discount)

Buy now!