Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

Stamp Date and Time

New Here ,
Jun 17, 2025 Jun 17, 2025

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. 

TOPICS
JavaScript
263
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Adobe Employee ,
Jun 17, 2025 Jun 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

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Jun 17, 2025 Jun 17, 2025

What is the script your are using?

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Jun 17, 2025 Jun 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

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Jun 17, 2025 Jun 17, 2025

That should work if the script is a calculation script in a field other than Today.  If it is in the Today field it should read:

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

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Jun 17, 2025 Jun 17, 2025

Im not sure what it is. I think im going to just do a type in method rather than auto generated date and time. Thank you to both for helping.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Jun 17, 2025 Jun 17, 2025

Can you upload the file?

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Jun 17, 2025 Jun 17, 2025
 
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Jun 17, 2025 Jun 17, 2025

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 PDFScripting
Use the Acrobat JavaScript Reference early and often

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Jun 17, 2025 Jun 17, 2025
LATEST

This article covers the info you need to create a dynamic stamp.

 

https://acrobatusers.com/tutorials/dynamic_stamp_secrets/

 

 

Thom Parker - Software Developer at PDFScripting
Use the Acrobat JavaScript Reference early and often

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines