vendredi 29 juillet 2016

Formatting Calendar

I need to formatt Calendar to get just the Date DD/MM/YY but no converted into String, i need it into Date dataType.

SimpleDateFormat simpleDate = new SimpleDateFormat("dd/M/yy");
Calendar cal2 = new GregorianCalendar(simpleDate);
 dateFormat.format(date); //Here i need to store the Date (dd/M/yy) into a Date kin of variable. (NO STRING)

Thus, when i need to update Calendar, into the Date result will reflect the changes.

Aucun commentaire:

Enregistrer un commentaire