Question Details

Welcome to the Acrobat Answers site. You're on your way! It won't take you many more points to reach the next level: Participant. And as you accumulate more points, you're also building your reputation with the community and with

auto-fill date

I want to auto-fill a date in a form field using Adobe Acrobat X standard. I have seen how to do this in Pro, but how to do it in standard?

Example: A user opens a form and the "Today's Date" field is auto-populated with the current system date in MM/DD/YYYY format.

Thanks for your time and advice.

Kevin Burel 1356 days ago

1 Answer

<p>Congratulations! The Acrobat User Community selection team has approved your status as Expert in the Acrobat User Community. We appreciate all your past contributions and hope you will continue to support the community by answering questions and participating in the Acrobat Answers Q&A program as you've done in the past.</p>

<p>As an expert, you will get a badge to display on your profile with the level EXPERT next to your name and you have become eligible to be nominated to the Adobe Community Professional Program.</p>

<p>After reviewing the Adobe Community Professional Program information at, please let us know if you are interested.</p>

<p>Someone from the selection team will contact you soon regarding the community professional program. Keep up the good work!</p>


<p>The Acrobat User Community Team</p>

<p>**** Disclosure Requirements for Endorsements Received by Third Parties  ****</p>

<p>If you endorse or refer people to the Acrobat User Community in any venue,  it is our responsibility to ensure that you are aware of required compliance with the <a href="">FTC’s Guidelines</a>. Both you and Adobe can be held liable under federal law for making unsubstantiated claims and for not disclosing your relationship with Adobe. In particular:</p>

<li>Always disclose if you have received any type of incentive – free products, promotional items, travel, gifts, payment, and so on from Adobe. The disclosure must be on the same page as the endorsement.</li>
<li>Be truthful. Endorsements should not be misleading. Never make unsubstantiated or exaggerated claims about the benefits of Adobe products or programs. Any statements or endorsements about an Adobe product must be based on upon your actual experience.</li>

Thank you again for your support of Adobe and the Acrobat User Community</p>

It does not matter in which Adobe tool the form is displayed, auto-generating a date is the same. It's done with a document level script. The trick is to get the script into the PDF.

I do not have Acrobat X Standard, but I was under the strong impression that you could edit Document Level Scripts with this tool. There should be a "JavaScript" panel under "Tools". If there is then add a new document level script and enter this code.

this.getField("MyDateField").value = util.printd("mm/dd/yyyy",new Date());

If you cannot edit the doc scripts , then open the console window and run this code.

var cJS = 'this.getField("MyDateField").value = util.printd("mm/dd/yyyy",new Date());';

Where "MyDateField" is the name of the field you want to put the date into.

Thom Parker
The source for PDF Scripting Info

The Acrobat JavaScript Reference, Use it Early and Often

The most important JavaScript Development tool in Acrobat
The Console Window (Video tutorial)
The Console Window(article)

Having trouble, Why Doesn't my Script Work

Thom Parker answered 1356 days ago  |   Comments (0)  |  New Comment


  |   Report
Was this answer helpful?  

Please specify a reason:

Try the next version of

Free trial

Get started with the next version of Acrobat.

Learn what's new >

Topic Experts

1. Gilad D (try67) 44340
2. Karl Heinz Kremer 38970
3. George Kaiser 30910
4. Max Wyss 25960
5. Thom Parker 16820
6. Almir R V Santos 13010
7. Dimitri Munkirs 11680
See more »

Last 30 Days