import { Component, AfterContentInit } from '@angular/core';
import { Router } from '@angular/router';

const now = new Date();

@Component({
     selector: 'datepicker-demo',
    template: require('./datepicker.demo.component.html'),
    styles: [require('./datepicker.demo.component.css')] 
})
export class DatePickerDemoComponent implements AfterContentInit{ 

    public moment: Date;
  
// Initialized to specific date (09.10.2018).
    private model: Object = { date: { year: 2018, month: 10, day: 9 } };

   
 datepickerDateFormat={
    date:{day: now.getDate(),month: now.getMonth() + 1,year: now.getFullYear()}
    
  };
 
    ngAfterContentInit() {
     
    
    }
    
    
}