Hi everyone,
Something must be wrong with ion-datetime component. When I press the button to change month from January to December the month skips December and goes right to November. I noticed that “min” attribute creates the issue but I can’t see why. I would appreciate some help. Thank you.
Ionic version 6 with Angular
test.ts
import { Component } from "@angular/core";
@Component({
selector: 'app-test',
templateUrl: './test.page.html',
styleUrls: ['./test.page.scss'],
})
export class TestPage {
today=new Date().toISOString();
constructor(){}
}
test.html
<ion-datetime displayFormat="DD/MM/YYYY" presentation="date" [min]="today"></ion-datetime>