Ver Mensaje Individual
  #4 (permalink)  
Antiguo 11/01/2007, 11:17
losporros
 
Fecha de Ingreso: noviembre-2005
Ubicación: Torreon Coahuila
Mensajes: 100
Antigüedad: 18 años, 5 meses
Puntos: 1
Re: Sumar dias habiles a fecha actual

Oye una duda en el siguiente condigo como le hago para Incrementar que 20 dias, osea en la linea de aqui abajo cuantos miles ekivalen a 1 dia??
Cita:
hoy = new Date();
i=0;
while (i<3) {
hoy.setTime(hoy.getTime()+24*60*60*1000); //Para añadirle 20 dias como le hago??
if (hoy.getDay() != 6 && hoy.getDay() != 0)
i++;
}
fecha = hoy.getDate()+ '/' + hoy.getMonth()+1 + '/' + hoy.getFullYear();
document.write(fecha);
Saludos.....