put hard code the time to 12:00 AM in matDatepicker.

10 views
Skip to first unread message

Ba Han

unread,
Nov 29, 2022, 4:32:07 AM11/29/22
to Angular and AngularJS discussion
Hi everyone,

I would like to know: how can I hard code the time to 12:00 AM? For instance, November 23, 2022, at 12:00 a.m.

<div class="mt-8">
                        <mat-form-field class="fuse-mat-no-subscript w-full">
                            <mat-label>Start Date</mat-label>
                            <mat-icon matPrefix
                                      class="hidden sm:flex icon-size-5"
                                      [svgIcon]="'heroicons_solid:briefcase'"></mat-icon>
                            <input matInput
                                   [matDatepicker]="startDatepicker"
                                   [formControlName]="'start_date'"
                                   [placeholder]="'Start Date'">
                            <mat-datepicker-toggle matSuffix
                                                   [for]="startDatepicker">
                            </mat-datepicker-toggle>
                            <mat-datepicker #startDatepicker></mat-datepicker>
                        </mat-form-field>
                    </div>

Thanks&Regards
Ba Han
Reply all
Reply to author
Forward
0 new messages