Ver Mensaje Individual
  #2 (permalink)  
Antiguo 15/03/2008, 09:43
Avatar de JavierB
JavierB
Colaborador
 
Fecha de Ingreso: febrero-2002
Ubicación: Madrid
Mensajes: 25.052
Antigüedad: 23 años
Puntos: 772
Re: Formatear campo a "dd/mm/yyyy"

Hola joelmg

Prueba esto:

Código:
<input type="text" onblur="this.value = this.value.replace(/^(\d{2})(\d{2})(\d{2})$/, '$1/$2/$3' )" />
Saludos,