Why code:
Date birthday; try { birthday = new SimpleDateFormat("dd.MM.yyyy").parse("01.04.2010"); } catch (Exception ex) { birthday = new Date(1990, 02, 05); } Toast.makeText(context, "DEBUG: " + new DateTime(birthday).getDayOfMonth() + " " + new DateTime(birthday).getMonthOfYear(), Toast.LENGTH_SHORT).show(); gives out "DEBUG: 31 3" instead of the logical "DEBUG: 1 4"?