florent37/SingleDateAndTimePicker

SingleDateAndTimePickerDialog more than 1 year

boby1975 opened this issue · 1 comments

Hi
How to set setMaxDate in SingleDateAndTimePickerDialog.Builder ?
Thanks

@boby1975 The library currently supports date ranges of ±1 year only in both directions from the current date. To support more than 1 year, use separate picker for year available both from Builder class and XML.

From the examples:

new SingleDateAndTimePickerDialog.Builder(this)
                .setTimeZone(TimeZone.getDefault())
                .bottomSheet()
                .curved()
                .displayHours(false)
                .displayMinutes(false)
                .displayDays(false)
                .displayMonth(true)
                .displayDaysOfMonth(true)
                .displayYears(true)
                .defaultDate(defaultDate)
                .display();