Showing years list in increasing order from top to bottom

How can I change the order of years in ion-datetime picker? Currently it is showing in decreasing order. I want to show years in picker in increasing order.

1 Like

I don’t see an obvious way in the docs:
https://ionicframework.com/docs/api/components/datetime/DateTime/#input-properties

Hey! Did you find a solution for that?

Not yet. I am thinking of going with ion-select. But it doesn’t give feel like date picker.

If you have a limited number of years, you can use yearValues property:

yearValues="2020,2021"

or

[yearValues]="[thisYear, nextYear]"