PDF Editing Issues

How to Add Dynamic Date and Time to Adobe Acrobat Custom Stamps

Adam DavisAdam Davis Nov 24, 2026 868 views

Question details

The user wants to create a custom dynamic stamp in Adobe Acrobat Pro DC that automatically displays the current date and time when applied to a document.

How to Add a Dynamic Date and Time to Adobe Acrobat Custom Stamps
Product
Adobe Acrobat Pro DC
Device & OS
not provided
Scenario
Creating a custom PDF stamp for document review or approval that requires an automated timestamp.
Observed behavior
The user needs the stamp to execute a script or function to fetch and display the real-time date and time upon placement.
Before you start

Ensure you have Adobe Acrobat Pro DC installed, as the standard version or free Adobe Reader lacks the advanced form-editing and JavaScript capabilities required to create dynamic stamps.

Solution 1Recommended

Creating a Dynamic Timestamp Using JavaScript in Acrobat

This method involves adding a text field to your stamp PDF and applying a custom JavaScript calculation to automatically fetch the current date and time upon placement.

A dynamic stamp relies on a tiny snippet of JavaScript executed when the stamp is applied to the PDF document. By utilizing the built-in util.printd method, you can format the date and time perfectly for your workflow.

1
Create the base stamp document

Design your stamp layout in a program like Word or Illustrator, leaving an empty space for the date. Save this design as a PDF and open it in Adobe Acrobat Pro DC.

2
Add a text field

Navigate to 'Tools' > 'Prepare Form'. Add a text field over the blank area where you want the date and time to appear on your stamp.

3
Apply the JavaScript calculation

Right-click the newly created text field, select 'Properties', and go to the 'Calculate' tab. Choose 'Custom calculation script', click 'Edit', and enter this code: event.value = util.printd('yyyy/mm/dd HH:MM:ss', new Date());

4
Save to the Stamps folder

Save this PDF file directly into your Adobe Acrobat user Stamps directory. The stamp will now automatically calculate and update the time whenever you apply it from the Stamps tool menu.

Creating a Dynamic Timestamp Using JavaScript in Acrobat
Finding the Stamps Folder: To locate your user Stamps folder, open the JavaScript Console (Ctrl+J or Cmd+J) in Acrobat, type app.getPath('user', 'stamps'); and press Enter (or Ctrl+Enter).

Add Custom Stamps Easily with WPS PDF

If you are looking for a simpler way to review documents without writing JavaScript, WPS PDF offers an intuitive interface to add, manage, and customize text and image stamps effortlessly.

  1. 1. Open your PDF: Launch WPS Office and open your target PDF document using the integrated WPS PDF tool.
  2. 2. Access the Stamp tool: Navigate to the 'Comment' tab on the top ribbon and click on the 'Stamp' icon to view the stamp gallery.
  3. 3. Apply or customize your stamp: Choose from a variety of pre-designed review stamps, or click 'Click to Add' to import your own custom stamp image directly onto the document page.
Seamlessly add pre-made, custom, or signature stamps to any PDF document in seconds.Highly compatible with standard PDF formats created by Adobe Acrobat and other PDF editors.Lightweight architecture ensuring fast loading and smooth performance on Windows, Mac, and mobile.Free built-in tools for editing text, commenting, highlighting, and signing PDFs.
microsoft office alternative - wps office

Frequently Asked Questions

Why is my dynamic stamp date not updating when I apply it?

If the date isn't updating, ensure that the calculation script is correctly entered in the 'Calculate' tab of the text field properties, not the 'Action' or 'Format' tab. Additionally, verify that JavaScript execution is enabled in your Adobe Acrobat Preferences under the 'JavaScript' category.

Can I change the date and time format on the dynamic stamp?

Yes. You can modify the format inside the util.printd function within your script. For example, changing 'yyyy/mm/dd HH:MM:ss' to 'mmm dd, yyyy' will display the output as 'Oct 25, 2023' instead of a numeric string.

Where exactly is the Acrobat user Stamps folder located on Windows?

On Windows, the Stamps folder is typically located at 'C:\Users\[Your Username]\AppData\Roaming\Adobe\Acrobat\[DC or Version Number]\Stamps'. You must place your custom stamp PDF inside this specific folder for Acrobat to recognize and list it in the Stamp tool menu.