asantibanez / Ranger

Android horizontally scrolled DatePicker
57 stars 21 forks source link

Setting start date in the middle of the month and end date as today #5

Open swqat117 opened 7 years ago

swqat117 commented 7 years ago

setStartDateWithParts(currentDateTime.getYear(), currentDateTime.getMonthOfYear()-1, currentDateTime.dayOfMonth().withMinimumValue().getDayOfMonth()); setEndDateWithParts(currentDateTime.getYear(), currentDateTime.getMonthOfYear(), currentDateTime.getDayOfMonth());

This is what i tried to implement and figured out that when i click on nov 7 which is today , the Onclick() funtion redirects to october 7 and not nov 7

asantibanez commented 7 years ago

Hi @swqat117 . I will check this. It appears the library is assuming is working with 1 month always. Will have a fix soon.