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
dialog.getDatePicker().setMinDate(calendar.getTimeInMillis());