Date

Allows users to choose a date from a calendar. For quick reference, see technical parameters.

Best practices

  • Use in forms only.

Example

Parameters

arialabel
Field label for accessibility purposes
default_value
Set a default date (yyyy-mm-dd)
html_id
HTML id of the element. Add only if needed to customize styling or needed by Javascript to perform a specific functionality.
label
Label of the field. The content enclosed within the shortcode tags populates this field.
max
The latest date that can be entered (yyyy-mm-dd)
min
The earliest date that can be entered (yyyy-mm-dd)
name
HTML name of the field
required
Set to “true” to make the field mandatory.