florent37 / SingleDateAndTimePicker

You can now select a date and a time with only one widget !
Apache License 2.0
1.02k stars 331 forks source link

Previous dates not available #269

Open karanjhinga opened 4 years ago

karanjhinga commented 4 years ago

Previous dates are not visible.

karanjhinga commented 4 years ago

This screenshot might help Screenshot_2020-04-06-12-02-32-497

Akhunzaada commented 3 years ago

@karanjhinga The library currently supports date ranges of ±1 year only in both directions from the current date. In your case current date was 06.04.2020 and -1 year in past ended on day 08.04.19.

Also, since the picker is circular, after the last day of previous year, i.e. 08.04.19 you will see the previous day as 05.04.21 which is part of +1 year.

Solution: Use a separate Year picker available both from Builder class and XML.