Quantcast
Channel: Ionic Framework - Ionic Forum
Viewing all articles
Browse latest Browse all 48980

Ion-datetime only working in current month

$
0
0

Hey, I just love the new look of ion-datetime. Unfortunately it’s only working well in the current month.

date-gif

Here’s my code (ionic 6.0.1):

<ion-item>

    <ion-label>{{ 'AUDIT.date' | translate }}</ion-label>

    <ion-text slot="end">{{ audit.date | date:'dd.MM.yyyy' }}</ion-text>

    <ion-button slot="end" fill="clear" id="open-date-input">

      <ion-icon icon="calendar"></ion-icon>

    </ion-button>

    <ion-popover trigger="open-date-input" show-backdrop="true">

      <ng-template>

        <ion-datetime #popoverDatetime presentation="date" max="2025" [min]="today.startMin" mode='md'

          (ionChange)="audit.date = popoverDatetime.value">

        </ion-datetime>

      </ng-template>

    </ion-popover>

  </ion-item>

But I also tried it with just

<ion-datetime> </ion-datetime>

with the same result.

1 post - 1 participant

Read full topic


Viewing all articles
Browse latest Browse all 48980

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>