Skip to content
This repository has been archived by the owner on Nov 16, 2018. It is now read-only.


Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?


Failed to load latest commit information.
Latest commit message
Commit time
November 11, 2015 17:57
November 10, 2015 18:39
February 19, 2016 13:10
July 11, 2015 20:28
July 11, 2015 19:52
May 1, 2014 07:49
August 23, 2016 09:36
January 17, 2015 17:50
November 11, 2015 17:57
July 11, 2015 20:28
November 11, 2015 17:57
July 11, 2015 20:28

⚠️ [DEPRECATED] react-bootstrap-datetimepicker

⚠️ This repository is not maintained anymore, please refer to this fork :

This project is a port of for React.js


Installation :

npm install react-bootstrap-datetimepicker


var DateTimeField = require('react-bootstrap-datetimepicker');


render: function() {
  return <DateTimeField />;

See Examples for more details.



Name Type Default Description
dateTime string moment().format('x') Represents the inital dateTime, this string is then parsed by moment.js
format string "x" Defines the format moment.js should use to parse and output the date to onChange
inputFormat string "MM/DD/YY h:mm A" Defines the way the date is represented in the HTML input. It must be a format understanable by moment.js
onChange function x => console.log(x) Callback trigger when the date changes. x is the new datetime value.
showToday boolean true Highlights today's date
size string "md" Changes the size of the date picker input field. Sizes: "sm", "md", "lg"
daysOfWeekDisabled array of integer [] Disables clicking on some days. Goes from 0 (Sunday) to 6 (Saturday).
viewMode string or number 'days' The default view to display when the picker is shown. ('years', 'months', 'days')
inputProps object undefined Defines additional attributes for the input element of the component.
minDate moment undefined The earliest date allowed for entry in the calendar view.
maxDate moment undefined The latest date allowed for entry in the calendar view.
mode string undefined Allows to selectively display only the time picker ('time') or the date picker ('date')
defaultText string {dateTime} Sets the initial value. Could be an empty string, or helper text.

Update Warning

Starting from 0.0.6, the 3 github repositories react-bootstrap-datetimepicker, react-bootstrap-datetimepicker-npm and react-bootstrap-datetimepicker-bower are merged in a single one. The build process changed but the API is the same. However now the package exports DateTimeField directly, no need to do :

var DateTimeField = require('react-bootstrap-datetimepicker').DateTimeField;

instead use :

var DateTimeField = require('react-bootstrap-datetimepicker');


There is still plenty of features missing compared to the original date time picker, hence contributions would be highly appreciated.