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

validation for date?

balajjivinodpj
Registered: Mar 10 2007
Posts: 6

How to validate the date using the date/time field in the designer8.0?for (ex) the dates between 2005 and 2008 are all valid other dates are all invalid note that only using the date/time field in the standard bar.Plz urgent???

My Product Information:
Acrobat Standard 8, Windows
thomp
Expert
Registered: Feb 15 2006
Posts: 4411
The dates entered into a Date Field in a Designer for are simple text. To do a date comparison you need to convert this date text into a JavaScript Date Object. You can find everything you need in 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