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

Date population in a form

mitch54
Registered: Jun 1 2010
Posts: 30
Answered

Here is my problem-and I'm new to Acrobat, so there might be a way to do this-and it concerns dates on a time sheet. I have a time sheet that I have all of the hourly calculations, totals, etc. working. What I need to know, is there a way to populate the dates for each day from one date? What I mean is, when someone enters the beginning date, is there a way to fill out all of the date fields for each day from that one entry? I have the first day set with the beginning date (it is in a separate field). I can get it to work in Excel but the boss wants it in PDF form.

My Product Information:
Acrobat Pro 8.1.7, Windows
gkaiseril
Expert
Registered: Feb 23 2006
Posts: 4308
Yes, but the exact code will depend upon whether you created the form using Acrobat Form Tools or LiveCycle Designer.

Thom Parker has written [url=http://www.acrobatusers.com/tutorials/2006/date_time_part1]Working with date and time in Acrobat JavaScript (Part 1 of 3)[/url] that shows how to do day calculation in Acrobat JS. LiveCycle Designer has not only the ability to use Acrobat JS, but also has FormCalc that has date functions that convert a date string to the number of days from an Epoch date and convert the number of days from the Epoch date to a string date.

George Kaiser

mitch54
Registered: Jun 1 2010
Posts: 30
truthfully I'm not sure what it was created in. I got the assignment and the form had already been made except for the date part. The person who created it is no longer in this department, so I'm not sure if I'll be able to find out. Is there a way to find out how it was created? Like I said, I'm new to Acrobat. I'll look at Parker's article and see if that helps. Thanks.
gkaiseril
Expert
Registered: Feb 23 2006
Posts: 4308
You can look at the properties of the PDF in Acrobat, 'File => Properties', and select the 'Description' tab and see what the value of 'PDF Producer:' is.

George Kaiser

mitch54
Registered: Jun 1 2010
Posts: 30
OK...thanks. It says Adobe Acrobat 8.13 Image Conversion Plug-In