Código :
if ((vfechaForm.selectedDate.getMonth()+7)>12){
dia = vfechaForm.selectedDate.getDate();
mes = (vfechaproxForm.selectedDate.getMonth()+7);
year = vfechaproxForm.selectedDate.getFullYear()+1;
Alert.show(year.toString());
}else{
dia = vfechaForm.selectedDate.getDate();
mes = vfechaForm.selectedDate.getMonth()+7;
year = vfechaForm.selectedDate.getFullYear();
}
vfechaproxForm.text = (mes+"/"+dia+"/"+year);
}
solo que cuando pasa de junio me marca un error y es ahi donde necesito que si esta en julio se posicione en enero del siguiente año
ayuda por favor
