Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Acrobat button to set system time in a text field 1

Status
Not open for further replies.

tcharlson

Technical User
Feb 8, 2007
2
US
I have an Acrobat form that has both date and time fields. I created a button using Javascript to set the date field with the current date.

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

Now I am attempting to create a button to set the system time to the time field.

Thanks for your help,

Todd
 
What happens with this, field "Time" say?
[tt] this.getField("Time").value = util.printd("hh:MM:ss tt", new Date());[/tt]
 
Thanks for the post tsuji. It works great!!!

Thanks,

Todd
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top