Ayuda Con Date Calendar...
El problema es el sgte: tengo ke hacer un "programa" ke lea una fecha ingresada del usuario en formato dd/mm/yyyy y ke la valide el calendar, y luego ke sace la diferencia de dias con la fecha actual...
Y no kcho naaaaa xD. Plz Help!
Y no kcho naaaaa xD. Plz Help!
iAnio = fecha.substring(6, 10);
iMes = fecha.substring(3, 5);
iDia = fecha.substring(0, 2);
Calendar fecha = Calendar.getInstance();
fecha.set(iAnio, iMes-1, iDia);
Calendar hoy = Calendar.getInstance();
int aniosDiff = hoy.get(Calendar.YEAR) - fecha.get(Calendar.YEAR);
int mesDiff = hoy.get(Calendar.Month) - fecha.get(Calendar.MONTH);
int diaDif = hoy.get(Calendar.Date) - fecha.get(Calendar.DATE)
iMes = fecha.substring(3, 5);
iDia = fecha.substring(0, 2);
Calendar fecha = Calendar.getInstance();
fecha.set(iAnio, iMes-1, iDia);
Calendar hoy = Calendar.getInstance();
int aniosDiff = hoy.get(Calendar.YEAR) - fecha.get(Calendar.YEAR);
int mesDiff = hoy.get(Calendar.Month) - fecha.get(Calendar.MONTH);
int diaDif = hoy.get(Calendar.Date) - fecha.get(Calendar.DATE)
