
Security News
How Enterprise Security Is Adapting to AI-Accelerated Threats
Socket CTO Ahmad Nassri discusses why supply chain attacks now target developer machines and what AI means for the future of enterprise security.
react-multi-date-picker
Advanced tools
a simple React datepicker component for work with gregorian, persian, arabic and indian calendars



npm install --save react-multi-date-picker
https://shahabyazdi.github.io/react-multi-date-picker
import React from "react";
import DatePicker from "react-multi-date-picker";
export default function Example() {
return <DatePicker />;
}
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8" />
<title>React Multi Date Picker</title>
</head>
<body>
<span>Calendar Example :</span>
<div id="calendar"></div>
<span>DatePicker Example :</span>
<div id="datePicker"></div>
<span>Plugins Example :</span>
<div id="datePickerWithPlugin"></div>
<!-- Ract -->
<script src="https://unpkg.com/react@17/umd/react.production.min.js"></script>
<script src="https://unpkg.com/react-dom@17/umd/react-dom.production.min.js"></script>
<!-- DateObject -->
<script src="https://cdn.jsdelivr.net/npm/date-object@latest/dist/date-object.min.js"></script>
<!-- ReactMultiDatePicker -->
<script src="https://cdn.jsdelivr.net/npm/react-multi-date-picker@latest/build/browser.min.js"></script>
<!-- Optional Plugins -->
<script src="https://cdn.jsdelivr.net/npm/react-multi-date-picker@latest/build/browser_plugins.min.js"></script>
<script>
const { DatePicker, Calendar } = ReactMultiDatePicker;
const { DatePickerHeader } = ReactMultiDatePickerPlugins;
ReactDOM.render(
React.createElement(Calendar),
document.getElementById("calendar")
);
ReactDOM.render(
React.createElement(DatePicker),
document.getElementById("datePicker")
);
ReactDOM.render(
React.createElement(DatePicker, {
plugins: [React.createElement(DatePickerHeader)],
}),
document.getElementById("datePickerWithPlugin")
);
</script>
</body>
</html>
| Name | Type | Default | Availability (DatePicker/ Calendar) |
|---|---|---|---|
| value | Date, DateObject, String, Number or Array | new Date() | both |
| multiple | Boolean | false (true if value is Array) | both |
| range | Boolean | false | both |
| timePicker | Boolean | false | both |
| onlyTimePicker | Boolean | false | both |
| onlyMonthPicker | Boolean | false | both |
| onlyYearPicker | Boolean | false | both |
| format | String | YYYY/MM/DD | both |
| formattingIgnoreList | Array | undefined | both |
| local | String | en | both |
| calendar | String | gregorian | both |
| mapDays | Function | undefined | both |
| onChange | Function | undefined | both |
| className | String | "" | both |
| weekDays | Array | undefined | both |
| months | Array | undefined | both |
| showOtherDays | Boolean | false | both |
| minDate | Date, DateObject, String or Number | undefined | both |
| maxDate | Date, DateObject, String or Number | undefined | both |
| disableYearPicker | Boolean | false | both |
| disableMonthPicker | Boolean | false | both |
| zIndex | Number | 100 | both |
| plugins | Array | [] | both |
| arrow | Boolean | true | DatePicker |
| animation | Boolean | false | DatePicker |
| inputClass | String | "" | DatePicker |
| name | String | undefined | DatePicker |
| id | String | undefined | DatePicker |
| title | String | undefined | DatePicker |
| placeholder | String | undefined | DatePicker |
| style | Object | {} | DatePicker |
| type | String | input | DatePicker |
| render | React.Component or Function | undefined | DatePicker |
| disabled | Boolean | false | DatePicker |
| inputMode | String | undefined | DatePicker |
| scrollSensitive | Boolean | true | DatePicker |
| hideOnScroll | Boolean | false | DatePicker |
| calendarPosition | String | auto | DatePicker |
| containerStyle | Object | undefined | DatePicker |
| containerClassName | String | undefined | DatePicker |
| editable | Boolean | true | DatePicker |
| onlyShowInRangeDates | Boolean | true | DatePicker |
| onOpen | Function | undefined | DatePicker |
| onClose | Function | undefined | DatePicker |
| Calendars | Locals |
|---|---|
| gregorian (default) | en (default) |
| persian | fa |
| arabic | ar |
| indian | hi |
| DatePicker Types | ||||
|---|---|---|---|---|
| input (default) | input-icon | icon | button | custom |
FAQs
A simple React datepicker component for working with gregorian, persian, arabic and indian calendars with the ability to select the date by single, multiple, range and multiple range pickers.
The npm package react-multi-date-picker receives a total of 75,986 weekly downloads. As such, react-multi-date-picker popularity was classified as popular.
We found that react-multi-date-picker demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Security News
Socket CTO Ahmad Nassri discusses why supply chain attacks now target developer machines and what AI means for the future of enterprise security.

Security News
Learn the essential steps every developer should take to stay secure on npm and reduce exposure to supply chain attacks.

Security News
Experts push back on new claims about AI-driven ransomware, warning that hype and sponsored research are distorting how the threat is understood.