Date input Change history

Date Changed Description
Jul 2026 GOV.UK Frontend v6.4.0

Added ability to pass day, month, year, error and values options to customise individual inputs.

Jan 2026 GOV.UK Frontend v5.14.0

Fixed inputs shifting alignment on iOS 18.

Sept 2024 Guidance

Removed guidance about not needing to use autocomplete in prototypes.

Aug 2023 Guidance

Added recommendation to accept month names.

May 2021 GOV.UK Frontend v4.1.0

Removed pattern="[0-9]*" from input elements.

Nov 2020 GOV.UK Frontend v3.10.0

Added ability to set inputmode to change which keyboard type displays for mobile and tablet users.

Oct 2020 Guidance

Added guidance about using example dates in hint text.

Apr 2020 Guidance

Updated date error guidance to be more consistent.

Jan 2020 GOV.UK Frontend v3.5.0

Changed attribute type="number" to type="text" inputmode="numeric" on input elements.

Sept 2019 GOV.UK Frontend v3.1.0

Added option to set attributes on the fieldset.

Mar 2019 GOV.UK Frontend v2.8.0

Added pattern parameter to enable additional validation on inputs.

Jan 2019 GOV.UK Frontend v2.6.0

Added autocomplete parameter to help meet the WCAG 2.1 criterion Identify Input Purpose.

Sept 2018 GOV.UK Frontend v2.4.0

Added option to set classes on component’s form group.

Sept 2018 GOV.UK Frontend v2.0.0

Removed name-based width logic.

Changed name option to namePrefix.

Jul 2018 Guidance

Added guidance on setting the component’s legend as a page heading.

Jul 2018 GOV.UK Frontend v1.1.1

Fixed a bug that caused an undefined class to be added to individual inputs when classes was not set.

Jul 2018 GOV.UK Frontend v1.1.0

Added option to set name and id on each input item.

Changed component to use classes attribute rather than input names to set input widths.

Added default input items (day, month, year) if no items are set.

Jun 2018 GOV.UK Frontend v1.0.0

Component introduced.