DateTimePicker

It is based on the react-datepicker library. All the props the library exposes can be passed to either DatePicker or TimePicker.

Note: Pass a value of null if you don't want the default value of Date.now().

Install and import #

Simple use case #

Pass props to DatePicker #

Properties #

NameType(s)DefaultRequired
children
node
disabled
bool
locale
object
onChange
func
size
sm
md
lg
lg
value
number | object | string
DEFAULT_DATE

Dependencies #

Peer dependencies #