DatePicker default value

I want to change the default DatePicker value programmatically, but there doesn't seem to be a DatePicker.setMonth \ Year \ DayOfMonth function or anything like that ...

Any ideas?

+3
source share
1 answer

Method:

public void updateDate (int year, int monthOfYear, int dayOfMonth)

Take a look: http://developer.android.com/reference/android/app/DatePickerDialog.html

+3
source

Source: https://habr.com/ru/post/1761976/