Muchisimas gracias, funciono a la perfeccion, se agradece su siempre buena atenciçon y colaboraciçon.
GRACIAS A TODOS.
Cita:
Iniciado por David el Grande
Yo he probado haciendo una ligera modificación al script de
JavierB, y me funcionó sin problemas restando 300 días:
Código javascript
:
Ver originalhoy = new Date();
hoy.setTime(hoy.getTime()-24*60*60*1000*300); // Restamos 300 días
mes = hoy.getMonth()+1;
alert(hoy.getDate()+ '/' + mes + '/' + hoy.getFullYear());