Here is the HTML code.
<mat-form-field appearance="outline">
<mat-label>Time From: </mat-label>
<input matInput type="time" formControlName="start_time">
</mat-form-field>
And output after form submitted.
{
start_time: "00:47"
}
Here is the HTML code.
<mat-form-field appearance="outline">
<mat-label>Time From: </mat-label>
<input matInput type="time" formControlName="start_time">
</mat-form-field>
And output after form submitted.
{
start_time: "00:47"
}
You can use moment.js library to get AM/PM with input time.
moment(start_time,'hh:mm').format('hh:mm a')
Use format from date-fns library, moment.js is deprecated