DateTimepicker
Bootstrap 5 DateTimepicker
DateTimepicker is a form that adds the function of selecting date and time.
Note: Read the API tab to find all available options and advanced customization
Basic example
Input with a modal for selecting a date and time.
Inline version
You can use inline version with inline prop.
Disabled
Use disabled property on DateTimepicker to give it a grayed out appearance and remove pointer events.
Default values
You can set default date and time with options datepickerOptions and timepickerOptions.
Invalid label
Add invalidLabel with specified value, to change the invalid label message.
Input toggle
Add inputToggle prop to the input element to enable toggling on input click.
Custom date and time options
Use datepickerOptions or timepickerOptions props to set custom options from our Datepicker and Timepicker components.