Skip to content
DocumentTaskLab

PDF forms · Acrobat

Add a date field to an Acrobat form that fills in today's date

Written November 27, 2026

A date box that people fill in by hand comes back in every format imaginable — and sometimes with the wrong day entirely. A date field that stamps itself when the form opens removes the guesswork: the person signing gets today's date already filled in, in one consistent format, and only has to change it if the form is genuinely about another day. This guide adds the field in Adobe Acrobat, formats it, and adds the short script that fills it.

Add the date field

Adobe's help on creating and distributing PDF forms covers the form editor this guide starts in.

  1. Open the form in the form editor. In Acrobat, open the PDF and choose the Prepare a form tool. Existing fields appear as boxes you can move and resize.
  2. Add a text field where the date belongs. Choose Add a text field from the toolbar, then click or drag on the page at the spot for the date. Acrobat names the field automatically.
  3. Rename the field clearly. Double-click the field to open its properties and give it a plain name such as DateSigned or FormDate. A clear name matters because the script in the next section refers to the field by name only if you place the script at document level; the field-level script below does not need it, but the next person editing the form will thank you.
  4. Set the format to Date. In the field properties, open the Format tab, choose Date as the format category, and pick the date pattern you want shown, such as mm/dd/yyyy or a written-out month. With a date format set, anything typed into the field is checked and displayed in that one pattern.

Make the field fill in today's date

The automatic date comes from a small piece of JavaScript on the field itself. Adobe documents form field scripting as part of its form field properties help; the calculation script below uses two standard pieces, event.value for the field's displayed value and util.printd for turning a date into formatted text.

  1. Open the Calculate tab. With the field's properties still open, go to the Calculate tab and choose the custom calculation script option, then open the script editor.
  2. Paste the script. Enter this script exactly: if (!event.value) { event.value = util.printd("mm/dd/yyyy", new Date()); } — and change the pattern in quotes if you picked a different date format in the previous section, so the script and the format agree.
  3. Understand what the script does. Each time the form calculates, the script checks whether the field is empty. If it is, it writes in the current date. If someone has already typed a date, the script leaves it alone instead of overwriting their entry on every recalculation.
  4. Close the properties and leave the form editor. Use the option to close the form editing mode so the form behaves as it will for the people filling it in.
  5. Save, close, and reopen the file. The script runs when the form calculates, which includes when the file is opened. Reopening your saved copy should show today's date already sitting in the field.
The date is the reader's date

The script reads the clock on the computer that opens the form, not a central server. That is normally what you want — the date the person filled the form in — but a computer with a wrong clock will stamp a wrong date, and reopening a saved copy later does not change a date that is already filled in, because the script only fills an empty field.

Decide whether people can change the date

  1. Leave the field editable for flexible forms. If the form can legitimately be dated for a different day — a start date, a future appointment — leave the field as it is. The automatic date is a helpful default, and the date format keeps entries consistent.
  2. Set the field to read-only for fixed dates. If the date must always be the day the form was completed, open the field properties, go to the General tab, and turn on the read-only option. The script still fills the field; people just cannot retype it.
  3. Say which behavior you chose near the field. A small label such as Date completed beside the box tells the reader the date is automatic and saves them hunting for a way to type in it.

End state

When it goes wrong

Related document tasks

  • Add a check box field to a PDF form in Acrobat

    Add a check box field to a PDF form in Acrobat: open Prepare a form, place the check box where the printed box sits, name it, set its export value and default state, then test it outside editing mode.

  • Add a text field that expands to fit in an Acrobat form

    Add a text field that expands to fit in an Acrobat form: set a multi-line field to scroll long text, use an auto-shrinking font size, and know the honest limits, since a fixed PDF field cannot push the page down.

  • Add a table to a PDF form as fillable rows in Acrobat

    Add a table to a PDF form as fillable rows in Acrobat: draw the grid, put one uniquely named text field in each cell, multiply the first row with Create Multiple Copies, align the columns, and add a totals field that calculates.

  • Add a document property and show it in the text with a field in Word

    Add a document property in Word and show it in the text with a field: set Title, Manager or Company under File > Info or Advanced Properties, insert it with Quick Parts > Document Property or a property field, and refresh fields after changes.

Sources