Dynamically change minDate for Primeng calendar (with time)

  angular, primeng

I have following code

<p-calendar .... [minDate]="getMinArrivalDate()" [showTime]="true"></p-calendar>

getMinArrivalDate(): Date {
     return someCaluclatedDate

The issue is that when I open this calendar I see that hours and minutes are wrong (they dont update to fit min date).
I have already tried updateUI() method without any success.

Source: Angular Questions

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.