title: How to display current date in input control based on timezone?
body: <p>I have an input control with startAt=&quot;CalendarDate&quot; where I want to display current date based on the timezone.The control is displaying yesterday's date.Pls let me know how to correct this</p>
  <pre><code>&lt;input matInput [matDatepicker]=&quot;picker&quot; [(ngModel)]=&quot;SelectedDate&quot; [min]=&quot;minDate&quot; startAt=&quot;CalendarDate&quot; (dateChange)=&quot;getByDate()&quot; readonly=&quot;readonly&quot;&gt;
  &lt;mat-datepicker #picker [(ngModel)]=&quot;SelectedDate&quot;&gt;&lt;/mat-datepicker&gt;  
  
   calDate= this.CommonService.GetDateTimeByTimeZone().subscribe(tz =&gt; {
       this.timezoneDate = tz;
       this.SelectedDate = moment(this.timezoneDate).format(&quot;YYYY-MM-DD&quot;);
    });
    CalendarDate = this.calDate;
  </code></pre>