You must be logged in to post Login

Search Forums:


 






Simple question. how to get output date+20 days

UserPost

9:45 am
August 20, 2011


sebstck

New Member

posts 2

Hello guys,

I looked for that on google for hours but did not find anything, i guess i did not use the right keywords.


Is it possible to define a variable representing 20 days after the output date. 
If today we are the 2011 08 20, it would get the output: 2011 09 09 
  
Something like yyyy MM dd+20.
  
Any help would be more than appreciated!


2:54 pm
August 20, 2011


David Blatner

Admin

posts 823

No, cannot be done with text variables. Sorry!

co-host, InDesignSecrets.com

4:10 pm
August 20, 2011


John Hawkinson

Cambridge, MA

Community Member

posts 4

Err, are we talking about text variables, or Javascript variables in scripting, or something else entirely (VB? Applescript)?

If we're talking about a scripting language, just add 20*86400 to the number of seconds. Exactly how depends on the language.

11:58 pm
August 20, 2011


sebstck

New Member

posts 2

Thanks for your answers.

That´s a shame it cant be done with text variable as it would be something quite handy for some ppl i guess.

Anyway, is there a kind of plugin to do such a thing on indesign. I never used scripts on it before.