These forums are now Read Only. If you have an Acrobat question, ask questions and get help from one of our experts.

Consecutive dates?

ajacobs
Registered: Jun 3 2007
Posts: 4

I am designing a time form that requires consecutive dates. The last thing I am is some kind of scripting expert but I thought I had much of what I needed figured out. But I can't get this one thing to work.

I want to use the traditional date time field box for the first date and have it automatically fill in the other 13.

Is this impossible to do with formcalc - I am guessing there is a javascript solution. I am willing to drop using the date time and just use a text field if I have to for the remainder.

How can I make consecutive dates fill in automatically?

gkaiseril
Online
Expert
Registered: Feb 23 2006
Posts: 4307
In both Acrobat forms and LiveCycle Designer, you can use JavaScript to create a Date/Time object, from which you can compute each day up to 13 days.

If you want to use FormCalc, you can use the "Date2Num()" function to get the number of days from the epoch date for the date converted and then you can add the appropriate number of days to that date number and use the "Date2Numb()" function to convert the computed number back to a formatted date.

George Kaiser