RenovoSolutions / ngx-datetimepicker

An Angular component for a customizable date and time picker
MIT License
31 stars 24 forks source link
calendar calendar-component date-picker datepicker datetime datetime-picker picker timepicker timepickerdialog

[!NOTE]
This project is no longer actively maintained.

We want to thank everyone for their contributions and hope we've helped you in your coding journey.

ngx-datetime-picker

npm npm

Demo

Live demo can be found at https://renovosolutions.github.io/ngx-datetimepicker/.

Date time picker that falls back to native HTML5 components on mobile

DateTime formats

Date formats are called at datePicker.component.ts - functions formattedDate() and mobileFormattedDate().

Time formats are called at timePicker.component.ts - functions formattedTime() and mobileFormattedTime().

DateTime formats are called at dateTimePicker.component.ts - functions formattedDate() and mobileFormattedDate().

Change these calls to a different format to get different results. All formats are defined in date.service.ts.

Usage

import { DateTimePickerModule} from 'ngx-datetime-picker';

@NgModule({
  imports: [
    DateTimePickerModule
  ],
<ngx-datetime-picker [(selectedDateTime)]="dateTimeExample"></ngx-datetime-picker>

<ngx-date-picker [(selectedDate)]="dateExample"></ngx-date-picker>

<ngx-time-picker [(selectedTime)]="timeExample"></ngx-time-picker>

Additional options for each picker:

Additional options for ngx-date-picker and ngx-datetime-picker:

Additional options for ngx-time-picker and ngx-datetime-picker:

CSS

Compile ngx-datetime-picker.css from SCSS and copy into to your project.

If you are using angular-cli, the css can be added to your angular-cli.json:

"styles": [
  "../node_modules/ngx-datetime-picker/ngx-datetime-picker.css"
]

SCSS files available for quick customization. Override the defaults, compile, and include them in your project.

Development:

Work flow

Requirements

Contributors

JoshDSommer BrentWMiller benjamin-a-kuntz SFarageNIS Marco Mantovani Jojie Palahang Sam Graber alecrem jrquick17
Josh Sommer Brent Miller Benjamin Kuntz Steven Farage Marco Mantovani Jojie Palahang Sam Graber Alejandro Cremades Jeremy Quick
Personal