I have been trying to get an answer to this question for quite a while. I also had a look at the following link: Android - DatePicker Widget Format.
On my phone/ emulator (v 2.3.3) both the DatePicker widget and the dialog do not take the date format specified in settings (Settings->Date&Time->Select date format). They are always in the format "MM/dd/yyyy". The locale is set to English UK.
I get "d/MM/yyyy" when I read the settings with:
Settings.System.getString(getContentResolver(), Settings.System.DATE_FORMAT);
Does anybody have an idea about how to change the date format in a DatePicker view?
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…