Forms

Datepicker

The Date Picker is an input field that allows users to choose a date and year.

Anatomy

Anatomy of a datepicker
  • mandatory
  • optional

Default

ElementsMandatoryDescription
labelyesDate
text fieldyesInput area of selected date and year
iconyesVisual of calendar to invoke the action
month dropdownyesDropdown of months
year dropdownyesDropdown of years
current dateyesIndication of the current date
selected datenoIndication of the selected date

Conditional

ElementsMandatoryDescription
error messageyesa message informing the user if there is a problem with their entry

Do's

  • allow the users to type in the date and year directly when it is needed
  • date format should be clear and understandable to users
  • full name of months are spelled out

Don'ts

  • don't enter special characters to format dates in text field

When to use

  • when the complete date entry (DD-MM-YYYY) is required, not partial (only a year or month or date, for example)
  • when making a selection of the date is needed

When not to use

  • when manual text input is not available