Answers for "angular ng owl date time custom format"

0

angular ng owl date time custom format

IN .HTML
=======
<input matInput [(ngModel)]="toDate" [owlDateTime]="dateTo"
     [value]="toDate | date: 'MM/dd/yyyy HH:mm'" owl-date-time="dateTo" readonly>
<owl-date-time #dateTo></owl-date-time>
<mat-icon matTooltip="Calendar" matSuffix [owlDateTimeTrigger]="dateTo"
     (click)="setDateTime(dateTo)">date_range</mat-icon>

IN .TS
======
setDateTime(dateTime) {
	dateTime.selected = dateTime.startAt = toDate;
}
Posted by: Guest on March-05-2021

Code answers related to "angular ng owl date time custom format"

Code answers related to "Javascript"

Browse Popular Code Answers by Language