![Antiguo](http://static.forosdelweb.com/fdwtheme/images/statusicon/post_old.gif)
21/07/2006, 06:24
|
![Avatar de KarlanKas](http://static.forosdelweb.com/customavatars/avatar11549_2.gif) | Moderador extraterrestre | | Fecha de Ingreso: diciembre-2001 Ubicación: Madrid
Mensajes: 6.987
Antigüedad: 23 años, 1 mes Puntos: 61 | |
Haz que javascript trabaje por tí:
<script>
anio1=1990
mes1=4
dia1=23
anio2=1991
mes2=1
dia2=2
fecha1=new Date(anio1,mes1,dia1);
fecha2=new Date(anio2,mes2,dia2);
if(fecha2<fecha1){
alert("Por favor, la fecha2 debe ser posterior a la fecha1")
}
</script>
No sé si quedó claro!
__________________ Cómo escribir
No hay pregunta tonta, sino tonto que quiere seguir en la ignorancia. |