Edit on GitHub
Jump to docs navigation

Field Types / Datetime field

Note: You are currently reading the documentation for Bolt 3.7. Looking for the documentation for Bolt 5.2 instead?

Datetime picker widget, to select a date and a time.

Basic Configuration:

        eventdate:
            type: datetime

Example usage in templates:

{{ record.eventdate }}

Options:

The field has a few options to change the appearance and functionality of the field.

  • class set to wide to show the field extra wide, filling out the column.
  • options contains some options for the datetimepicker, see below for an example:
        eventdate:
            type: datetime
            options:
                datetimepicker:
                    changeMonth: true
                    changeYear: true
                    yearRange: "-100:-0"


Edit this page on GitHub
Couldn't find what you were looking for? We are happy to help you in the forum, on Slack or on Github.