Skip to content

Date ​

Add data-flow-datepicker to an <input type="date">.

  1. Events appear here.
html
<input type="date" name="publishDate" value="2026-10-12" data-flow-datepicker>
  • Click the field or press Arrow Down to open the calendar.
  • Pick a day with the mouse, or with the arrow keys and Enter.
  • Today picks today, Clear empties the field.
  • You can also type a date into the field. See Typing dates and times.

The form posts publishDate=2026-10-12.

Keep the calendar open ​

By default the calendar closes after a pick. Add data-fdp-close-on-select="false" to keep it open:

Limits ​

Use the native min and max, or data-fdp-min / data-fdp-max with today. See Limits and validation.

Released under the MIT License.