# react-datetimepicker

> Datetimepicker component for React

Latest version **2.0.0** (published 2015-09-17) · ISC license · 0 weekly downloads

## Install

```sh
npm install react-datetimepicker
pnpm add react-datetimepicker
yarn add react-datetimepicker
bun add react-datetimepicker
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 2.0.0 |
| Published | 2015-09-17 |
| First published | 2014-10-05 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 1 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 5 |
| Author | Filip Krasnianski |
| Maintainers | kraf |

## Links

- npm: https://www.npmjs.com/package/react-datetimepicker
- Repository: https://github.com/kraf/react-datetimepicker
- Issues: https://github.com/kraf/react-datetimepicker/issues
- npm.io page: https://npm.io/package/react-datetimepicker

## Dependencies (1)

- [moment](https://npm.io/package/moment.md) ^2.8.3

## Recent versions

- 2.0.0 (latest) — 2015-09-17
- 1.0.11 — 2014-11-19
- 1.0.10 — 2014-11-19
- 1.0.9 — 2014-11-19
- 1.0.8 — 2014-11-17
- 1.0.7 — 2014-11-17
- 1.0.6 — 2014-10-31
- 1.0.5 — 2014-10-27
- 1.0.4 — 2014-10-25
- 1.0.2 — 2014-10-08
- 1.0.1 — 2014-10-05
- 1.0.0 — 2014-10-05

## README

About
=====

Simple datetimepicker for use with React.js. The only dependencies are _moment_ and _React_. The styling is minimal and you will most likely have to customize it.

![Screenshot](https://raw.githubusercontent.com/kraf/react-datetimepicker/master/screenshot.jpg)

Changes
=======

* 2.0.0
  * Breaking: switched to managed values

Usage
=====

`npm install react-datetimepicker`

`var DateTimePicker = require("react-datetimepicker");`

API
===

Properties with defaults (all optional)
------------------------

```
weekStart=1 // 0 -> Sun, 1 -> Mon, 2 -> Tue, 3 -> Wed, 4 -> Thu, 5 -> Fri, 6 -> Sat
time=true // show/hide time picker part
inputMode=true // render input or inline datepicker
dateFormat='YYYY-MM-DD' // used for input when time is set to false
dateValidator=undefined // bool function(date) - return false to disable selection of particular date
dateTimeFormat='YYYY-MM-DD HH:mm' // used for input when time is set to true
value=(new Date()) // 
onChange=undefined // Gets invoked when selection changes
```

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