Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

100
Vistas
PDF script date week

On a PDF sheet, I have a weekly table. I would like to enter the date of Monday and automate the dates from Tuesday to Sunday.

I already have a little script that works except when we change the month. if I enter the date of 08/29 I get 08/30 for Tuesday and 08/31 for Wednesday and after the script crashes because I can't get past 09/01.

Below is the script used :

var d = this.getField("Lundi").value;
var djs = util.scand("dd/mm/yyyy", d);

if (d != "" && djs != null) {
    var day = djs.getDate() + 1;
    var month = djs.getMonth() + 1;
    var year = djs.getFullYear();

    var de = month + "/" + day + "/" + year;
    var dejs = util.scand("m/d/yyyy", de);

    event.value = util.printd("dd/mm/yyyy", dejs);
}
else {
    event.value = "";
}
about 4 years ago · Juan Pablo Isaza
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda