How can I disable future dates in angular p-calendar?

UI Components for Angular
Post Reply
Posts: 2
Joined: 13 May 2020, 07:53

14 May 2020, 08:09

I'm using calendar input as follows.

Code: Select all

<p-calendar  maxDate="dateTime" showTime="true" hourFormat="12" showButtonBar="true" [(ngModel)]="dateTime" name="timeOfUse" required #timeOfUse="ngModel">
I want to disable future dates in this datepicker. It may be a simple property, but I can't figure it out.

Appreciate any help

Post Reply

Return to “PrimeNG”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 2 guests