# Displaying Days of Other Months in KendoReact DatePicker

## Environment

<table>
	<tbody>
		<tr>
			<td>Product Version</td>
			<td>12.0.0</td>
		</tr>
		<tr>
			<td>Product</td>
			<td>Progress® KendoReact DatePicker</td>
		</tr>
	</tbody>
</table>

## Description

How can I display the days of previous and next months in the [KendoReact DatePicker](https://www.telerik.com/kendo-react-ui/components/dateinputs/datepicker) calendar popup, similar to the standalone Calendar component?

This knowledge base article also answers the following questions:

* How can I show days from other months in KendoReact DatePicker?
* Can I customize the DatePicker to show dates from previous and next months?
* How to use a custom Calendar component within KendoReact DatePicker?
* How to enable the `showOtherMonthDays` feature in DatePicker?

## Solution

To show the days of previous and next months in the DatePicker calendar popup, provide a custom Calendar component to the `calendar` prop of the DatePicker. Use the Calendar component with the `showOtherMonthDays` property set to `true`.

```tsx
import { DatePicker, Calendar, CalendarProps } from '@progress/kendo-react-dateinputs';

const CustomCalendar = (props: CalendarProps) => <Calendar {...props} showOtherMonthDays={true} />;

const App = () => <DatePicker calendar={CustomCalendar} />;
```

This approach ensures the DatePicker calendar popup displays the days of other months, providing users with better context and easier navigation between months.

The following example demonstrates a complete implementation:

[Demo Source](https://demos.telerik.com/kendo-react-ui/knowledge-base/dateinputs/datepicker-show-other-months/source.txt)

## See Also

* [KendoReact DatePicker Documentation](https://www.telerik.com/kendo-react-ui/components/dateinputs/datepicker)
* [KendoReact Calendar Documentation](https://www.telerik.com/kendo-react-ui/components/dateinputs/calendar)
* [DatePicker Custom Calendar](https://www.telerik.com/kendo-react-ui/components/dateinputs/datepicker/custom-rendering#customizing-the-calendar)
