title: How to add datepicker popup to input field with YYYY-MM-DD hh:mm:ss format in angular2
body: <p>How to add datepicker popup to input field with YYYY-MM-DD hh:mm:ss format in angular.</p>
  
  <p>I added like below in .html file but not effecting.</p>
  
  <pre><code>&lt;input [(ngModel)]="date2" ngui-datetime-picker
       date-format="YYYY-MM-DD hh:mm:ss"
       hour="23"
       minute='59'
       close-on-select="false"/&gt;
  </code></pre>
  
  <p>And i installed and imported ngui-datetime-picker in app.module.ts file.</p>
  
  <pre><code>import { NguiDatetimePickerModule } from '@ngui/datetime-picker';
  
  @NgModule({
     imports: [BrowserModule, FormsModule, NguiDatetimePickerModule],
     declarations: [AppComponent],
     bootstrap: [ AppComponent ]
  })
  </code></pre>