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

Date Calculation in Adobe LiveCycle Designer

recardoh
Registered: Aug 22 2007
Posts: 2

I am using Adobe LiveCycle Designer to create an interactive PDF timecard. I am currently using date drop down calendars to separately select Monday, Tuesday..... Is there a way to have the Tuesday through Sunday to automatically calculate one Monday is selected?
 
Thanks in advance,
Mike

My Product Information:
LiveCycle Designer, Windows
thomp
Expert
Registered: Feb 15 2006
Posts: 4411
I'm not sure exactly what it is that your are asking about, but it sounds like you want to do a kind of week-day (or work-day) calculator.

The first thing you need to do is learn about using dates in calculations. Read the first couple of parts in this series of articles:

[url=http://www.acrobatusers.com/tech_corners/javascript_corner/tips/2006/date_time_part1/]http://www.acrobatusers.com/tech_corners/javascript_corner/tips/2006/date_time_part1/[/url]

Here's an example calculator. This is an AcroForm, but the date calculations are exactly the same for a LC Form.

[url=http://www.windjack.com/PDFSamples/WorkingDaysCalculator.pdf]http://www.windjack.com/PDFSamples/WorkingDaysCalculator.pdf[/url]

Thom Parker
The source for PDF Scripting Info
www.pdfscripting.com
Very Important - How to Debug Your Script