SingleDateAndTimePicker
SingleDateAndTimePicker copied to clipboard
SingleDateAndTimePickerDialog more than 1 year
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();