bleenco/ng2-datepicker

Issue with maxYear

Opened this issue · 1 comments

dmkav commented

When I set maxYear to new Date().getFullYear() (now is 2018 year) in options then in UI datepicker I can select only until 2017. This is a bit strgange.
Also, when I swap monthes ono by one it can swap any year. Why it does not apply max Year?

I agree with you, the behavior is not consistent.
I suggested some patches on PR #313