Skip to main content
Participant
May 16, 2025 2:01 AM UTC
Answered

Date Automatically updated

I want to add a date in the PDF so that it can be automatically updated to the date of that day every time it is opened

Can anyone help? I have tried many times per the comment from the community, but it didn't work.

I may need detailed steps. 

 

 

 

 

PDF Automation Station
Community Expert
May 16, 2025 2:51 AM UTC

Create a field called "Today" and enter the following document level script:

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

7 replies

Participant
Sep 3, 2025 5:15 PM UTC

I was trying to use the code mentioned ot make a received stamp in adobe, I wanted it to auto advance each day...  Only trouble is, not when I try adn use it, it defaults to sep 11 2025 ?  not sure why it would do that?

 

Translate
PDF Automation Station
Community Expert
Community Expert
Sep 3, 2025 6:51 PM UTC

Please post your script.

Translate
PDF Automation Station
Community Expert
Community Expert
May 16, 2025 2:51 AM UTC

Create a field called "Today" and enter the following document level script:

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

Translate
huan_8039Author
Participant
May 16, 2025 3:38 AM UTC

Thank you. I added a text box, and the date has been shown correctly.

I have another question. I don't want the bodors and filled color of the text box shown. 

I try to change to NO COLOR, it seems fail to change. It still show a light blue background color.

Translate
Bernd Alheit
Community Expert
Community Expert
May 16, 2025 4:56 AM UTC

Set the field as read-only.

Translate