Handy classes

Datum

String sdatum = "02-11-2018";
SimpleDateFormat fmt = new SimpleDateFormat("dd-MM-yyyy");
GregorianCalendar datum = new GregorianCalendar();
try {
        datum.setTime(fmt.parse(sdatum));
} catch (ParseException exception){

}