SimpleDateFormat dateFormat = new SimpleDateFormat("dd-MM-yyyy"); Date d = dateFormat.parse(datestring)