How to get current time/date to show in custom dynamic stamp?

How do I get my custom dynamic stamp to reflect current date? I've put in what I believe to be the appropriate javascript in the custom calculation script of the field properties:
[event.value = util.printd("h:MM tt, mmm dd yyyy", new Date);]

but the stamp just shows the date/time that was current when this script was first saved in the field properties. If I use the stamp a day later, it continues to show this same original date.


Mark L


2 Answers

try this:

event.value = util.printd("h:MM tt, mmm dd yyyy", new Date());


Ricardo Falegnami   

There are a series of steps that need to be carefully followed inorder to load the samp imge PDF, add the fields and calculations. Have you looked at the tutorials on this site about dynamic stamps?

Note a PDF file name is not the stamp's name, nor the PDF file name that has the page with the stamp's image, nor is the stamp's name the displayed name on the stamp palette.The actual stamp name is affixed during the process of importing the PDF image into the samp pallete.

The field and JavaScript is added after the stamp has been uploaded to the stamp pallete.


George Kaiser   


Please specify a reason: