0

I set my system timezone to ET and in Mat datepicker date changes from the actual date. Please help me resolve this issue.

enter image description here

<div *ngIf="startDateWidget" class="filter-field date-field">
   <label class="labeltext">Start Date   {{startOfMonth}}</label>
   <mat-form-field color="accent" appearance="fill">
      <input matInput [matDatepicker]="startDate" [(ngModel)]="startOfMonth" (dateChange)="filterChange('change',startDateId, $event.value)"  [max]="endDateValue">
      <mat-datepicker-toggle matSuffix [for]="startDate"></mat-datepicker-toggle>
      <mat-datepicker #startDate color="primary"></mat-datepicker>
   </mat-form-field>
</div>

Any solution appreciated!

Robin Singh
  • 1,565
  • 1
  • 13
  • 38

0 Answers0