Press "Enter" to skip to content

Angular 2 & 4 Date Time Picker Component | angular2-datetimepicker

Angular 2 DateTimepicker is a responsive DateTimepicker component for web and mobile. It is mobile-friendly and lightweight. Developed by Cuppa Labs.

angular2 datetimepicker, time picker angular 2, date time picker angular npm, angular mydatepicker, angular datetimepicker, angular material datetime picker

How to make use of it:


npm install angular2-datetimepicker

1. Import AngularDateTimePickerModule into your AppModule.

import { AngularDateTimePickerModule } from 'angular2-datetimepicker';

  // ...
  imports: [
  // ...

2. Declare component data variables and options in your component where you want to consume the dropdown component.

import { Component, OnInit } from '@angular/core';

export class AppComponent implements OnInit {
    date: Date = new Date();
    settings = {
        bigBanner: true,
        timePicker: false,
        format: 'dd-MM-yyyy',
        defaultOpen: true

3. Add the following component tag in the template where you want to place the date picker.

<angular2-date-picker [(ngModel)]="date" [settings]="settings"></angular2-date-picker>

angular datetime picker component, Angular 2/4 DateTime Picker Plugin/Github

See Demo And Download

Official Website(CuppaLabs): Click Here

This superior jQuery/javascript plugin is developed by CuppaLabs. For extra advanced usage, please go to the official website.

Be First to Comment

    Leave a Reply

    Your email address will not be published.