PDF Editing Issues

Automatically Add Today’s Date to an Adobe Acrobat PDF Form

Huma Ashraf ChHuma Ashraf Ch Nov 24, 2026 868 views

Question details

The user wants a PDF form or dynamic stamp to insert the current date automatically whenever it is used.

Automatically Add Today’s Date to an Adobe Acrobat PDF Form
Product
Adobe Acrobat
Device & OS
not provided
Scenario
A user needs a current date in a PDF form or stamp, but the necessary feature is unavailable under the current Acrobat license.
Observed behavior
The current license does not provide the feature needed to set up the desired date automation.
Before you start

Check your Acrobat version and license for form editing and JavaScript tools. For an automated form, make sure JavaScript is enabled and that the PDF is not restricted against editing.

Solution 1Recommended

Add a current-date field to an Acrobat PDF form with JavaScript

Use this method if your Acrobat license permits form editing and the PDF viewer allows JavaScript.

This example updates a form field when the PDF is opened. It does not create a dynamic stamp; configuring a stamp requires a separate stamp template and script.

1
Create the date field

Open the PDF in Acrobat, choose Prepare a form, and add a text field named TodayDate.

2
Enable JavaScript

Open Acrobat Preferences, select JavaScript, and check Enable Acrobat JavaScript if it is available.

3
Add the script

Open the JavaScript tools and choose Document JavaScripts. Add a script containing: this.getField("TodayDate").value = util.printd("mm/dd/yyyy", new Date());

4
Test the date

Save the PDF, close it, and reopen it. Check that TodayDate displays the current date; test it in the intended PDF viewer as well.

License and viewer limitations: A viewer with JavaScript disabled or unsupported may not update the field. If your license does not include the editing tools, check Adobe’s current plans or ask someone with the appropriate tools to prepare the form.
Create a dated PDF

Create a PDF with the current date in WPS Office

For a document you can regenerate, insert an automatically updating date in WPS Writer and export a fresh PDF when needed. The exported date is static; this does not add a dynamic field or stamp to an existing PDF.

  1. 1. Open the source document: Open WPS Writer and create a document or open the file you use as a template.
  2. 2. Insert the date: Place the cursor where the date belongs, then choose Insert > Date and Time.
  3. 3. Set the date to update: Choose a date format and select Update automatically if that option is available, then confirm.
  4. 4. Export a fresh PDF: Update or reopen the source document as needed, check the displayed date, and choose Export to PDF. Repeat the export when you need a PDF with a new date.
Insert an updating date before exporting a new PDFOpen and edit Microsoft Word DOC and DOCX filesUse familiar document-editing toolsExport documents to PDF
microsoft office alternative - wps office

Frequently Asked Questions

Can an Acrobat PDF form update the date without JavaScript?

An ordinary PDF form cannot automatically generate a changing current date without scripting or another supported automation feature. You can enter the date manually with Fill & Sign instead.

Why does the date stay the same when I reopen the PDF?

Check that Acrobat Preferences > JavaScript has Acrobat JavaScript enabled and that the document script refers to the correct field name. Other PDF viewers may not support the script.

Does the form script also make a dynamic stamp?

No. The example updates a form field when the PDF opens. A dynamic stamp needs its own stamp template and script, along with suitable Acrobat tools and JavaScript support.

Can I use a PDF with an automatic date if I cannot edit forms?

Someone with the appropriate Acrobat editing tools can prepare the form for you. To update the date, open it in a PDF viewer that supports and permits the form’s JavaScript.