Automatically Add Today’s Date to an Adobe Acrobat PDF Form
Question details
The user wants a PDF form or dynamic stamp to insert the current date automatically whenever it is used.

- 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.
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.
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.
Open the PDF in Acrobat, choose Prepare a form, and add a text field named TodayDate.
Open Acrobat Preferences, select JavaScript, and check Enable Acrobat JavaScript if it is available.
Open the JavaScript tools and choose Document JavaScripts. Add a script containing: this.getField("TodayDate").value = util.printd("mm/dd/yyyy", new 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.
Enter the date manually when automation is unavailable
Use a manually entered date if your license or PDF viewer cannot set up or run the automated form.
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. Open the source document: Open WPS Writer and create a document or open the file you use as a template.
- 2. Insert the date: Place the cursor where the date belongs, then choose Insert > Date and Time.
- 3. Set the date to update: Choose a date format and select Update automatically if that option is available, then confirm.
- 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.

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.




