Ver Mensaje Individual
  #2 (permalink)  
Antiguo 24/09/2003, 18:49
Avatar de BeN
BeN
 
Fecha de Ingreso: agosto-2003
Ubicación: Mexico, D.F.
Mensajes: 281
Antigüedad: 20 años, 8 meses
Puntos: 0
mmh pues el codigo ta muy muy mal... escribi este y si funciona:

hoy = new Date();
a = hoy.getFullYear();
m = hoy.getMonth();
d = hoy.getDate();
if (a > 2003) {
trace('ya caduco por el año');
}else{
if(m > 10){
trace('ya caduco por el mes');
}else{
if (d > 24){
trace('ya caduco por el dia');
}else{
trace('aun no caduca');
}
}
}

::: en cada if, tanto del año, mes, dia coloca el correcto valor y listo.
__________________
...everything under the sun is in tune
But the sun is eclipsed by the moon.