SimpleDateFormat sdf = new SimpleDateFormat("dd/MM/yyyy"); Date parse = sdf.parse("18/08/2012"); Calendar c = Calendar.getInstance(); c.setTime(parse); System.out.println(c.get(Calendar.MONTH) + c.get(Calendar.DATE) + c.get(Calendar.YEAR));