Closed Rainer-Lang closed 9 years ago
@Rainer-Lang new Date().getTime() should work fine for minDate. Passing Long.MIN_VALUE for maxDate will tell SublimePicker to keep future dates open for selection.
new Date().getTime()
minDate
Long.MIN_VALUE
maxDate
Note: The comment above setDateRange(long, long) is wrong. Passing -1L will not work as intended. The relevant check is performed here: https://github.com/vikramkakkar/SublimePicker/blob/master/sublimepickerlibrary/src/main/java/com/appeaser/sublimepickerlibrary/SublimePicker.java#L515
setDateRange(long, long)
-1L
Pass Long.MIN_VALUE for whichever bound you wish to keep open: minDate/maxDate.
@vikramkakkar Working. Thanks.
@Rainer-Lang
new Date().getTime()
should work fine forminDate
. PassingLong.MIN_VALUE
formaxDate
will tell SublimePicker to keep future dates open for selection.Note: The comment above
setDateRange(long, long)
is wrong. Passing-1L
will not work as intended. The relevant check is performed here: https://github.com/vikramkakkar/SublimePicker/blob/master/sublimepickerlibrary/src/main/java/com/appeaser/sublimepickerlibrary/SublimePicker.java#L515Pass
Long.MIN_VALUE
for whichever bound you wish to keep open:minDate
/maxDate
.