# DateRangePicker validate the entered dates of the DateRangePicker

## Environment

<table>
    <tbody>
	    <tr>
	    	<td>Product Version</td>
	    	<td>6.0.2</td>
	    </tr>
	    <tr>
	    	<td>Product</td>
	    	<td>Progress® KendoReact DateRangePicker</td>
	    </tr>
    </tbody>
</table>

## Description

I want validate the dates that are added to the DateRangePicker through its input element using either the keyboard or arrow keys.

## Solution

You can achieve this by custom rendering the date inputs which allows you to get their values in the `onChange` event handler. The value can be compared to the `min` or `max` date value that is passed through props to check if the entered date is valid or not. When the date is invalid, you can show the [Error](https://www.telerik.com/kendo-react-ui/components/labels/error/) component or [Popup](https://www.telerik.com/kendo-react-ui/components/popup/) component to display an error message:

Here is an example demonstrating this approach:

[Demo Source](https://demos.telerik.com/kendo-react-ui/knowledge-base/dropdowns/daterangepicker-validation/source.txt)
