I’m using the basic DatePickerDialog tutorial by Android found here Android Date Picker
and I’ve got it working. But I only want to be able to pick a date from this year. So is there a way to remove the year from the Dialog so that only the month and day are displayed? Every time I try and take the Year int out it breaks the code.
Yes it possible. DatePicker has the built-in three NumberPicker control, followed by the year, month, day, hide out first to.
CustomerDatePickerDialog
DatePicker: