Future years not in ion-datetime ? How to allow user to select date with future year?


#1

I am using ion-datetime , no issues but it doesn’t show future years.

How do I add it ?

ex :- Today 17/11/2016 , I should be able to select 02/01/2017 (2nd jan) as a date. But , maximum year in the list is current year.


#2

You can find the docs for datetime here (Look for Min and Max datetimes):


#3

Thanks ! I visited that page before. But , I ignored min max because I thought it was minimim and maximum dates out of existing dates in that calendar. :stuck_out_tongue: Thanks


#4

How ?

Same problem here, i can’t select the future year


#5

Just set per example max=“2020-10-31”

By the way, it would be great that at least the following year is shown… We are approaching the end of the year and my customers cannot select a date in next year, meaning that I need to modify all my ion-datetime…