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

Calculating time(s)

dougie
Registered: Sep 11 2007
Posts: 2

On my form there are fields for obtaining courses. These course of of defferent lengths ie 45 min 30 min 1hr 10 min. How can I total these in hours and minutes?

My Product Information:
LiveCycle Designer, Windows
thomp
Expert
Registered: Feb 15 2006
Posts: 4411
You need to do a calculation. But First, What forms technology are you using? AcroForms or LiveCycle? If you built your form in Acrobat, take a look at this article.

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

If you built your form in LiveCycle designer, there are examples that come with it. Take a look on the Help menu and the folder inwhich Designer is installed. There are also lots of samples at the Acrobat LC Designer user to user forum.

To do calculations with times and dates read this article.

[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]

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