Ver Mensaje Individual
  #2 (permalink)  
Antiguo 11/09/2006, 13:59
Avatar de KarlanKas
KarlanKas
Moderador extraterrestre
 
Fecha de Ingreso: diciembre-2001
Ubicación: Madrid
Mensajes: 6.987
Antigüedad: 23 años, 1 mes
Puntos: 61
Prueba con esto:<html>
<head>
<title>Untitled</title>
</head>

<body>


<script>
minuto=10;
hora=22;

minutosumado=23;
horasumada=4;
fecha="10/12/1998";
parametros=fecha.split("/");

fecha2 = new Date(parametros[2] , parametros[1]-1 , parametros[0], hora+horasumada, minuto+minutosumado);
alert(fecha2)
alert("La fecha resultante es:\n"+ fecha2.getDate() + "/" + parseInt(fecha2.getMonth() +1)+ "/" + fecha2.getYear())


</script>

</body>
</html>
__________________
Cómo escribir

No hay pregunta tonta, sino tonto que quiere seguir en la ignorancia.