Skip to main content

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.

...
Support/development

Perfect for small code changes or to correct any bug at your site

Buy now!
...
Support/development 10 hours

Get a bigger amount of hours for more complex tasks and get a 10% discount

Buy now!