I'm using owl date time for giving the time picker option to a form. But I'm facing a problem with restricting users to select past times, for eg if the current time is 16:15 pm I want to restrict users to save time ie less than the current time 16.15pm.
I tried using [min] attribute but no success.*
code:
<mat-form-field [owlDateTimeTrigger]="dt2" id="timer-clock" floatLabel="never">
<input placeholder="hh:mm:ss"
matInput
formControlName="form_time"
[min]="minTime"
[owlDateTimeTrigger]="dt2"
[owlDateTime]="dt2"
[readonly]="true" />
<owl-date-time [pickerType]="'timer'"
[showSecondsTimer]="true" #dt2 >
</owl-date-time>
</mat-form-field>