I want to know when to use clear () and why to use it.
SimpleDateFormat simpleDateFormart = new SimpleDateFormat("dd/MM/yyyy");
Date data1 = simpleDateFormart.parse("18/12/1986");
Date data2 = simpleDateFormart.parse("25/01/2017");
Calendar mD = Calendar.getInstance();
Calendar mD2 = Calendar.getInstance();
mD.clear();
mD2.clear();