flavienlaurent / datetimepicker

DateTimePicker is a library which contains the beautiful DatePicker that can be seen in the new Google Agenda app.
1.83k stars 578 forks source link

How can i hide all the selection before the current date in date picker? #115

Open parin9097 opened 9 years ago

parin9097 commented 9 years ago

This library works at awesome level and awesome level of UI also.What i want to do is i don't want the before months and days from today.It means for ex. today is 30-7-2015 then my datetimepicker can show the days and months after the today not show the past days and months?

How can i do that?

delajose90 commented 9 years ago

You can try this for the range of the year:

datePickerDialog.setYearRange(Calendar.getInstance().get(Calendar.YEAR), 2028);

but I cannot set the range for the month... I'm still searching for the solution. Any idea?

anshadn commented 9 years ago

Anyone can idea,about this issue.This will be great library if you have set min and max date range.