# react-datepicker-compat

> A fork of a simple and reusable datepicker component for React

Latest version **1.5.4** (published 2015-06-02) · MIT license · 0 weekly downloads

> **Deprecated.** This package is deprecated.

## Install

```sh
npm install react-datepicker-compat
pnpm add react-datepicker-compat
yarn add react-datepicker-compat
bun add react-datepicker-compat
```

## Health

**Score 10/100 (F)** — status: deprecated.

Negative: deprecated.

## Facts

| | |
|---|---|
| Version | 1.5.4 |
| Published | 2015-06-02 |
| First published | 2015-05-28 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Node | >= 0.10 <= 0.12.x |
| Dependencies | 6 |
| Known vulnerabilities | 0 (+6 in 1 direct dependencies) |
| Install scripts | no |
| Author | Sven Anders Robbestad |
| Maintainers | svenanders |
| Keywords | react, datepicker, calendar, date, react-component |

## Links

- npm: https://www.npmjs.com/package/react-datepicker-compat
- Repository: git@github.com:svenanders/react-datepicker-compat
- Homepage: https://github.com/svenanders/react-datepicker-compat
- Issues: https://github.com/svenanders/react-datepicker-compat/issues
- npm.io page: https://npm.io/package/react-datepicker-compat

## Dependencies (6)

- [lodash](https://npm.io/package/lodash.md) ^3.9.3
- [moment](https://npm.io/package/moment.md) ^2.10.3
- [tether](https://npm.io/package/tether.md) ^0.7.2
- [random-guid](https://npm.io/package/random-guid.md) ^0.1.4
- [clone-function](https://npm.io/package/clone-function.md) ^1.0.6
- [react-onclickoutside](https://npm.io/package/react-onclickoutside.md) ^0.2.4

## Alternatives

- [mobx-react](https://npm.io/package/mobx-react.md) — 2.8M weekly downloads
- [rc-tree](https://npm.io/package/rc-tree.md) — 2.6M weekly downloads
- [@react-oauth/google](https://npm.io/package/@react-oauth/google.md) — 1.3M weekly downloads
- [@wagmi/connectors](https://npm.io/package/@wagmi/connectors.md) — 877.0K weekly downloads
- [vee-validate](https://npm.io/package/vee-validate.md) — 836.4K weekly downloads

## Recent versions

- 1.5.4 (latest) — 2015-06-02
- 1.5.3 — 2015-06-02
- 1.5.2 — 2015-06-02
- 1.5.1 — 2015-06-01
- 1.5.0 — 2015-06-01
- 1.4.2 — 2015-06-01
- 1.4.1 — 2015-06-01
- 1.3.12 — 2015-06-01
- 1.3.10 — 2015-06-01
- 1.3.9 — 2015-06-01
- 1.3.8 — 2015-06-01
- 1.3.7 — 2015-06-01
- 1.3.5 — 2015-06-01
- 1.3.4 — 2015-06-01
- 1.3.3 — 2015-06-01
- … 5 more at https://npm.io/package/react-datepicker-compat/versions

## README

# React Date Picker

A simple and reusable datepicker component for React ([Demo](https://sleepy-plains-7516.herokuapp.com/))

This is a fork of the original react-datepicker. The differences are as follows:

- Supports React 0.12
- Fixed the following issue: Changing locale doesn't work 
- Added a new node server.js to serve the example folder
- Removed hardcoded weekdays
- Added Proptypes
- Made it work with IE9-IE11

![](https://cloud.githubusercontent.com/assets/1412392/5339491/c40de124-7ee1-11e4-9f07-9276e2545f27.png)

## Configuration

- Change date format by passing a different date format in the props: `dateFormat: "YYYY/MM/DD"`
- Add placeholder text: `placeholderText: 'Click to select a date'` (Defaults to the selected date when no placeholder text is added)
- Give users a predefined date range: `minDate: moment()` & `maxDate: moment().add(5, 'days')` (this gives users the ability to select a date between today and 5 days in the future)
- Set date format for calendar: `dateFormatCalendar: "YYYY/MM/DD"`

## Installation

- Install with npm: `npm install react-datepicker-compat --save`

## Local Development

- Install packages:
	- `npm install`
- Run `grunt watch` in order to watch for local changes and run tests/build the code.
- Start a node webserver:
	- `$ node example/server.js`
- Visit `localhost:8000` to access the example.

To run tests, simply run `npm test`.

## License

Copyright (c) 2014 HackerOne Inc. and individual contributors. Licensed under MIT license, see [LICENSE](LICENSE) for the full license.
Changes in this fork (c) 2015 Sven A Robbestad. Licensed under MIT license

---
_Source: https://npm.io/package/react-datepicker-compat · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
