I have used mat-datepicker
for my Angular 6 project. But in date picker in is showing current timezone date. Instead of this I need to display current UTC date.
Here is my code
.ts file
var nowDate = new Date();
this.startdate = nowDate;
this.enddate = nowDate;
.html file
<mat-form-field style="margin-right: 25px;">
<input matInput [matDatepicker]="picker_start" placeholder="Start Date" [(ngModel)]="startdate" [ngModelOptions]="{timezone: 'UTC'}">
<mat-datepicker-toggle matSuffix [for]="picker_start"></mat-datepicker-toggle>
<mat-datepicker #picker_start></mat-datepicker>
</mat-form-field>