Ver Mensaje Individual
  #4 (permalink)  
Antiguo 03/06/2004, 10:10
Avatar de JavierB
JavierB
Colaborador
 
Fecha de Ingreso: febrero-2002
Ubicación: Madrid
Mensajes: 25.052
Antigüedad: 22 años, 3 meses
Puntos: 772
Hola de nuevo.

El código un poco corregido:
Código PHP:
function comprobarFecha(fec) {
    
f=fec.split('/');
    
fec=f[1]+'/'+f[0]+'/'+f[2]; 
    
hoy= new Date(); 
    
fecha= new Date(fec); 
    if(
fecha<=hoy
        
alert('Fecha incorrecta'); 

Saludos,