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

Date Subtraction

dslu2001
Registered: Dec 21 2007
Posts: 2

I'm currently using Adobe Acrobat 6.0 Professional. I created a document which contains two dates - (1) today's date and (2) Birth Date. My third field is Age. How do you I get the system to return the Age once the user enters both dates (Date Format is MM/DD/YYYY for both fields)

My Product Information:
Acrobat Pro 6.0.0, Windows
pddesigner
Registered: Jul 9 2006
Posts: 858
Hello dslu2001,

In the JavaScript Corner, Thom Parker has a posted a three part article titled "Working with date and time in Acrobat JavaScript" . It should provide a solution.

[url=http://www.acrobatusers.com/tech_corners/javascript_corner/tips/index.php?sort=true&search_keyword=Working+with+date+and+time+in+Acrobat+JavaScript&submitButtonName=Go]http://www.acrobatusers.com/tech_corners/javascript_corner/tips/index.php?sort=true&search_keyword=Working+with+date+and+time+in+Acrobat+JavaScript&submitButtonName=Go[/url]

My favorite quote - "Success is the ability to go from one failure to another with no loss of enthusiasm.