Skip to contents

The date_picker() allows users to select a localized date using touch, mouse, or keyboard input. It consists of two parts: the date input field and the date picker.

See the official documention for date picker, for all the correct props.

Examples

date_picker("date")
date_picker(
  "date",
  value = "2024-02-29",
  `value-state` = "Information",
  htmltools::div(
    slot = "valueStateMessage",
    "Thanks for picking a date!"
  )
)
Thanks for picking a date!
date_picker(
  "date",
  `format-pattern` = "dd-MM-yyyy"
)