florent37/SingleDateAndTimePicker

Previous dates not available

karanjhinga opened this issue · 2 comments

Previous dates are not visible.

  • Tried setting mustBeFuture to false still no effect.
  • setting cyclic adds future dates but not the previous days

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

@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.