ng pick datetime

Solutions on MaxInterview for ng pick datetime by the best coders in the world

showing results for - "ng pick datetime"
Mina
15 Jan 2019
1IN .HTML
2=======
3<input matInput [(ngModel)]="toDate" [owlDateTime]="dateTo"
4     [value]="toDate | date: 'MM/dd/yyyy HH:mm'" owl-date-time="dateTo" readonly>
5<owl-date-time #dateTo></owl-date-time>
6<mat-icon matTooltip="Calendar" matSuffix [owlDateTimeTrigger]="dateTo"
7     (click)="setDateTime(dateTo)">date_range</mat-icon>
8
9IN .TS
10======
11setDateTime(dateTime) {
12	dateTime.selected = dateTime.startAt = toDate;
13}