1 Reply Latest reply on Apr 12, 2017 11:33 AM by rohit_ID

    Variables de texto /fechas

    cecilias12062833

      Necesito diseñar un periódico con fecha que se actualice automáticamente

      No puedo hacerlo con variables de texto porque se publica al día siguiente.

      Hay forma de sumar un día a la variable fecha?

      Alguna otra forma de automatizarlo?

        • 1. Re: Variables de texto /fechas
          rohit_ID Adobe Employee

          Hi

          You can do that by a script :

           

          var today = new Date();

          var dt = new Date();

          dt.setTime(today.getTime() + (24 * 60 * 60 * 1000));

           

          var doc = app.activeDocument;

          doc.selection[0].contents= dt + "";

           

          This will add a day i.e. 24 hrs to your date and will return with the date of the next day.

          This will have implications as to how you are running your script on your documents. I have just tried with an empty text frame selected and it fills the text frame with the next date.

          Hope this helps.