I know there are quite a lot of question for this but none of the solutions are working for me, so this question. I want to restrict user to select date before today, but am
Above API 11 For min date you can use
android:minDate="mm/dd/yyyy" or setMinDate(long time) For Max date
android:minDate="mm/dd/yyyy"
setMinDate(long time)
android:maxDate="mm/dd/yyyy" // In XML
android:maxDate="mm/dd/yyyy"
setMaxDate(new Date().getTime());// Current time
setMaxDate(new Date().getTime());