No matter what I do, my DatePickerDialog always displays the month, the day then the year.
Or I need to display the day, the month and then the year.
How can I do that ?
Here is my little code :
Calendar cal = Calendar.getInstance(Locale.FRANCE);
cal.setTime(date);
int year = cal.get(Calendar.YEAR);
int month = cal.get(Calendar.MONTH);
int day = cal.get(Calendar.DAY_OF_MONTH);
DatePickerDialog dateDialog = new DatePickerDialog(this, 2, mListenerModifierDate, year, month, day);
dateDialog.setTitle("Modification de la date d\'intervention");
dateDialog.setMessage("Choisissez une date égale ou inférieure à aujourd\'hui.");