# Controlled Mode

By default, the DatePicker is in an uncontrolled state.

The DatePicker provides options for:

* [Controlling its date value](https://www.telerik.com/kendo-react-ui/components/dateinputs/datepicker/controlled-state#controlling-the-date-value)
* [Controlling its popup state](https://www.telerik.com/kendo-react-ui/components/dateinputs/datepicker/controlled-state#controlling-the-popup-state)

## Controlling the Date Value

To manage the date value of the DatePicker:

1. Use its [`value`](https://www.telerik.com/kendo-react-ui/components/dateinputs/api/datepickerprops#value) property.
2. Handle the [`onChange`](https://www.telerik.com/kendo-react-ui/components/dateinputs/api/datepickerprops#onchange) event.
3. Pass the new value through the props.

The following example demonstrates how to control the DatePicker value and display it an outer field.

[Demo Source](https://demos.telerik.com/kendo-react-ui/dateinputs/datepicker/controlled/date/func/source.txt)

## Controlling the Popup State

To manage the popup state of the DatePicker, use its [`show`](https://www.telerik.com/kendo-react-ui/components/dateinputs/api/datepickerprops#show) property.

The following example demonstrates how to toggle the calendar of the DatePicker by controlling the state of its popup through an external input.

[Demo Source](https://demos.telerik.com/kendo-react-ui/dateinputs/datepicker/controlled/popup/func/source.txt)

## Suggested Links

* [API Reference of the DatePicker](https://www.telerik.com/kendo-react-ui/components/dateinputs/api/datepickerprops)
* [React Date Inputs](https://www.telerik.com/kendo-react-ui/components/dateinputs)
