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

Javascript Date Display

homa
Registered: Feb 6 2007
Posts: 4

I asked if it is possible to display the date 2/6/07 as 6th February 2007. The response I received will give a date of 6 February 2007. I need "6th", with the "th". Or if it's 2/21/07, I would need it to read 21st February 2007. Thanks

My Product Information:
Acrobat Pro 7.0.0, Macintosh
Dimitri
Expert
Registered: Nov 1 2005
Posts: 1389
Hi homa,

guess I missed the "th" in there. Yes, this (th, st, nd, rd) is also doable in Acrobat JavaScript using regular expressions. You will need a good core JavaScript reference such as Oreilly's "JavaScript the Definitive Guide" for details on using regular expressions.

Hope that helps,

Dimitri Munkirs
WindJack Solutions
[url=http://www.windjack.com]www.windjack.com[/url]