# DatePickerComponent

A field that opens a calendar to pick a date.

```java
DatePickerComponent when = add(new DatePickerComponent(at(new Box("when", 10, 10, 120, 16)), this)
        .placeholder(words.get("mymod.pick_a_day"))
        .format(day -> day.getDayOfMonth() + "/" + day.getMonthValue() + "/" + day.getYear())
        .onChange(this::setDay));
when.calendar().labels(words, "mymod.calendar").today(serverDay);
// Last, so that the calendar is drawn over the rest and offered every input first.
add(when.popup());
```

## Variants

- Filled

Page: https://minuit.dryaides.com/components/datepicker.html
