JavaScript - DIGITAR FECHA 2

 
Vista:

DIGITAR FECHA 2

Publicado por CARLITA (3 intervenciones) el 15/01/2011 22:44:20
HOLA AMIGOS COMO ESTAN <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>Try It</title>
<script type="text/javascript">
function addSlashes(input) {
var v = input.value;
if (v.match(/^\d{2}$/) !== null) {
input.value = v + '/';
} else if (v.match(/^\d{2}\/\d{2}$/) !== null) {
input.value = v + '/';
}
}
</script>
</head>
<body>
<div>
<form action="" name="testForm">
<input type="text" name="dateField" onkeyup="addSlashes(this);" value="">
</form>
</div>
</body>
</html>
ES ES UN CODIGO QUE ME PASARON QUE MINETRAS DIGITO LA FECHA ME LO VALIDA PEO hay un problema

como puedo hacer pazra que me valide diga,mos el dia tiene 30 dias pero al ingresar puedo ingresar 47/12/2010 y asi tambioen con el mes y el año

ademas alñgun ejemplo con la hora que me permita ingresra mientras digito 10:28 y no pme permita ingresar 32:99 gracias
Valora esta pregunta
Me gusta: Está pregunta es útil y esta claraNo me gusta: Está pregunta no esta clara o no es útil
0
Responder