Manually Enter Date Into Custom Stamp

New Here ,
Aug 31, 2022 Aug 31, 2022

Copy link to clipboard

Copied

I am attempting to modify a custom stamp so that instead of pulling the date from the system [i.e. new Date()], it prompts the user to input a date string and then displays the input on the stamp. I have already reviewed the numerous posts by Karl Heinz Kramer and Thom Parker to no avail; they all use the system date in their examples.  They also recommend purchasing books, which is overkill for a simple problem, such as this.

 

I copied the "Recieved" stamp from the Dynamic.pdf file, and I can change everything other than the date that will appear on the stamp.  How can I modify this stamp to allow the user to input a date rather than using the system date?  Here's the default Acrobat-produced code for the stamp:

 

event.value = (new Date()).toString();
AFDate_FormatEx("mm-dd-yyyy");
event.value = "Received on:  " + event.value;

 

TOPICS
JavaScript

Views

22

Likes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
no replies

Have something to add?

Join the conversation