1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.
  2. Anuncie Aqui
    Anuncie aqui você Também: fdantas@4each.com.br

Angular- Primeng calender not displaying past end date values if minDate is current Date

Discussão em 'Angular' iniciado por user9014, Setembro 13, 2024.

  1. user9014

    user9014 Guest

    Primeng calender not displaying past end date values if minDate is current Date, How to display the past dates without using any [disabledDates] property?

    Below is the code:

    <p-calendar [showIcon]="true"
    inputId="icon" [minDate]="minDate" [showOtherMonths]="false" dateFormat="dd-M-yy"
    formControlName="LICENCE_END_DATE"></p-calendar\>


    When minDate is new Date(), then the value of formcontrolname - LICENCE_END_DATE is 'Wed Jul 31 2024 23:59:59 GMT+0530 (India Standard Time)' viz past value.

    Even though both minDate and selected date formats are similar, p-calender control not displaying past value.

    Continue reading...

Compartilhe esta Página