This library is a continuation of the ng2-datetime
library by nkalinov, now updated to support Angular v16.
- Bootstrap (v3 to v5) CSS only
- jQuery (v3.3.x to v3.7.0)
- Bootstrap-datepicker (v1.6.x to v1.10.x) (JS+CSS)
- Bootstrap-timepicker (v0.5.0 to v0.5.2) (JS+CSS)
npm install --save ngx-datetime-16
-
Import the required dependencies in the following order:
- Bootstrap CSS
- jQuery
- bootstrap-timepicker + bootstrap-datepicker
See this example for details.
-
import { NgxDatetimeModule } from 'ngx-datetime-16';
-
Add it to your app module's
imports
property
@NgModule({
...
imports: [NgxDatetimeModule, ...],
...
})
- Use it in your templates:
<datetime [(ngModel)]="date"></datetime>
- @jdewit for the timepicker plugin
- @eternicode for the datepicker plugin
- @nkalinov for the original ng2-datetime library.
- All contributors and users of this library.