Android-SwitchDateTimePicker icon indicating copy to clipboard operation
Android-SwitchDateTimePicker copied to clipboard

How To set Minimum and Maximum Time.

Open yogesh2591 opened this issue 7 years ago • 2 comments

For My Application I Have given user to select booking date time . The Date Should be Current Date or Next Date ,which i can easily set using setMinimumDateTime and setMaximumDateTime . But for Time minimum time should not be less than current time and max time should not be greater than current time + 24 hrs . how should i set minimum and maximum time as well. because setMinimumDateTime and setMaximumDateTime only set Constraint on date not time. How can i perform this task .

yogesh2591 avatar Feb 26 '18 10:02 yogesh2591

This feature isn't implemented yet, the view of times must be redone to gray out the hours and minutes that are not available depending on the date. You can contribute with a pull request, because it requires a significant development time. If you need this feature quickly, you can leave me an email (visible in my profile).

J-Jamet avatar Feb 26 '18 12:02 J-Jamet

can you provide source code related to set minimum and maximum time ?

nikulvaghani avatar Jan 22 '19 05:01 nikulvaghani