# Date Picker > A date field that opens a calendar under it. Source: https://native.shellui.dev/docs/components/form/date-picker ## Installation ```bash shellui-native add date-picker ``` **Platforms:** MAUI · Avalonia. Also installs `icon`, `calendar`. ## Usage ### Basic **MAUI** ```xml ``` **Avalonia** ```xml ``` [Live preview](https://native.shellui.dev/preview/index.html?c=date-picker-basic) ## MAUI and Avalonia `DateChanged` passes `DateChangedEventArgs` on MAUI and the new `DateTime` on Avalonia. ## API | Property | Type | Default | Description | |---|---|---|---| | `Date` | `DateTime` | Today | Selected date. Two-way bindable. | | `MinimumDate` | `DateTime?` | `null` | Earliest selectable date; `null` for no limit. | | `MaximumDate` | `DateTime?` | `null` | Latest selectable date; `null` for no limit. | | `Format` | `string` | `"MMMM d, yyyy"` | .NET date format string for the trigger text. | | Event | Arguments | Description | |---|---|---| | `DateChanged` | `DateChangedEventArgs` (MAUI) · `DateTime` (Avalonia) | User input only: setting Date from code or a binding doesn't raise it. | | Method | Description | |---|---| | `SetOpen(bool open)` | Opens or closes it. | | `Close()` | Closes it. |