Skip to main content
Participant
June 17, 2025
Question

Stamp Date and Time

  • June 17, 2025
  • 2 replies
  • 791 views

My custom stamp isnt showing up with the current date and time when stamping a document. Im not sure if its the saved location where my stamp is saved or the JavaScript im using. 

2 replies

PDF Automation Station
Community Expert
Community Expert
June 17, 2025

What is the script your are using?

Participant
June 17, 2025

var f = this.getField("Today");

f.value = util.printd("mm/dd/yyyy hh:MM tt", new Date()); 

Mainly this one but ive tried different iterations aswell

Thom Parker
Community Expert
Community Expert
June 17, 2025
CMH_Dakota_approved.pdf

That isn't a stamp file.  It's missing the page template and a propper title.

 

Just a note. DO NOT EVER USE THE CREATE STAMP TOOLS BUILT INTO ACROBAT. THIS FEATURE DESTROYS DYAMIC STAMPS. 

I hope that's clear. 

 

Thom Parker - Software Developer at PDFScriptingUse the Acrobat JavaScript Reference early and often
Community Manager
June 17, 2025

Hi @Dakota_reality6959,

 

 

 

Thanks for reaching out, and I understand how frustrating it can be when expected stamp behavior stops working.

 

From your description, it sounds like you’re using a dynamic stamp (like a date/time stamp), but it’s no longer displaying the correct date/time when applied. This usually points to one of the following issues:

 

 

Here is what I think:

 

1. JavaScript Disabled in Acrobat

Dynamic stamps rely on JavaScript to insert live data like the current date/time.

  • Go to Acrobat > Preferences > JavaScript

  • Make sure “Enable Acrobat JavaScript” is checked

 

 

2. Broken or Corrupted Stamp File

The JavaScript logic inside the stamp PDF may be broken or overwritten.

  • Navigate to:

    • Windows: C:\Users\<username>\AppData\Roaming\Adobe\Acrobat\<version>\Stamps

    • Mac: ~/Library/Application Support/Adobe/Acrobat/<version>/Stamps

     

  • Try removing the affected stamp file (*.pdf) and re-adding a fresh copy.

  • You can also create a new dynamic stamp using Adobe’s Sample Dynamic Stamps from this official resource

 

3. Testing the Stamp

To confirm if the stamp has

  • Select the stamp.

  • Use Ctrl + J (Windows) or Cmd + J (Mac) to open the JavaScript Console

  • If the console is blank or shows an error, the stamp script may be missing.

 

 

 

 Optional Workaround

If your stamp no longer auto-generates date/time, you can recreate it:

  1. Create a new PDF file with a form field that inserts:

var f = this.getField("Today");

f.value = util.printd("mm/dd/yyyy hh:MM tt", new Date());

 

  1. Save this as a custom stamp via:

     

    • Tools > Stamp > Custom Stamps > Create

     

Let us know:

  • What stamp name are you using (default vs custom)

  • If this worked previously and only recently stopped

  • Your Acrobat version (Help > About Adobe Acrobat)

  • Whether JavaScript is enabled

 

We’re happy to help troubleshoot further!


~Tariq