SingleDateAndTimePicker icon indicating copy to clipboard operation
SingleDateAndTimePicker copied to clipboard

SingleDateAndTimePickerDialog more than 1 year

Open boby1975 opened this issue 4 years ago • 1 comments

Hi How to set setMaxDate in SingleDateAndTimePickerDialog.Builder ? Thanks

boby1975 avatar Sep 18 '20 14:09 boby1975

@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();

Akhunzaada avatar Nov 06 '20 18:11 Akhunzaada