Topic: Datepicker only shows 7 years before and after the current year

kristofdeweyer free asked 5 years ago

hi,   Is there a way to be able to have more years in the dropdown when selecting a year in the datepicker? When looking at the code i see that the yearList() has this 7 hardcoded, is there a way to change this? Currently it is not clear for the user that he needs to select a year and then go back to the dropdown to have a new list.    

Witold Tkaczyk free commented 5 years ago

Hello, I'm already answered this question here: I hope it will help. Best regards,

Venky pro commented 4 years ago

I still see only 7 Year before and after the current year in my 7.4.1 Angular Please let us know a way to see more years

Arkadiusz Idzikowski staff commented 4 years ago

Please add 'minYear' and 'maxYear' parameters to your date picker options object, for example:

public myDatePickerOptions: IMyOptions = {
  minYear: 1990,
  maxYear: 2050

Please insert min. 20 characters.


Hire our experts to build a dedicated project. We'll analyze your business requirements, for free.



Specification of the issue

  • User: Free
  • Premium support: No
  • Technology: MDB Angular
  • MDB Version: -
  • Device: -
  • Browser: -
  • OS: -
  • Provided sample code: No
  • Provided link: No