# Filtering DateTime Fields in React Grid

## Environment

<table>
	<tbody>
		<tr>
			<td>Product Version</td>
			<td>11.1.0</td>
		</tr>
		<tr>
			<td>Product</td>
			<td>Progress® KendoReact Grid</td>
		</tr>
	</tbody>
</table>

## Description

I am using the Kendo React Grid and have filters on my columns. These filters work fine except when attempting to use a date filter on a DateTime field. I want to filter by both date and time or by date only.

This knowledge base article also answers the following questions:

* How can I filter DateTime fields in the Kendo React Grid?
* Is it possible to filter by both date and time in the React Grid?
* How to customize the filter component for DateTime fields in React Grid?

## Solution

To filter DateTime fields in the Kendo React Grid, use a custom `ColumnMenu` component to replace the default `DatePicker` with a `DateTimePicker`. Both components work with JavaScript `Date` objects, enabling filtering by date and time.

### Filtering with Custom Column Menu

1. Create a custom column menu that includes a `DateTimePicker`.
2. Attach the custom column menu to the `columnMenu` property of the specific column.

[Demo Source](https://demos.telerik.com/kendo-react-ui/knowledge-base/grid/grid-columnmenufilter-by-date-and-time/source.txt)

## See Also

* [React Grid Documentation](https://www.telerik.com/kendo-react-ui/components/grid/)
* [React DateTimePicker Documentation](https://www.telerik.com/kendo-react-ui/components/dateinputs/datetimepicker/)
* [React DatePicker Documentation](https://www.telerik.com/kendo-react-ui/components/dateinputs/datepicker/)
* [React Grid Filtering Documentation](https://www.telerik.com/kendo-react-ui/components/grid/filtering/)
