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

Date and Time Form Field

kriso
Registered: May 10 2007
Posts: 2

How can I set a form field to display the current date and time when the end user prints the document?

My Product Information:
Acrobat Pro 8, Macintosh
pddesigner
Registered: Jul 9 2006
Posts: 858
Hello Kriso,
Try this. From the menu bar, click Advanced, Document Processing, Document JavaScript, and add this script. Name the script date.

var d = this.getField("date");
d.value = util.printd("mmmm d, yyyy", new Date());

From the Form tool, add a text field named date and set it for Read Only.

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