- 1
- 2
- 3
- 4
- 5
- 6
try {
String sDate = new SimpleDateFormat("MM/dd/yyyy").format(new SimpleDateFormat("dd.MM.yyyy").parse(dayOfMonth + "." + (monthOfYear + 1) + "." + year));
dueDate.setText(sDate);
} catch (ParseException e) {
e.printStackTrace();
}