Welcome Dialog

Welcome to the Community!

We have a brand new look! Take a tour with us and explore the latest updates on Adobe Support Community.


Auto generate the date and time but display as yyyymdHHMM

New Here ,
Jun 04, 2021 Jun 04, 2021

Copy link to clipboard

Copied

I'm looking to create a field that is auto generated each time i use the pdf. This field needs to auto generate using date and time but be displayed as "yyyymdHHMM". any assistance would be greatly appreciated. 

TOPICS
Create PDFs

Views

81

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
Adobe Community Professional ,
Jun 04, 2021 Jun 04, 2021

Copy link to clipboard

Copied

LATEST

As document level script use this:

var date = new Date();
this.getField("Date").value = util.printd("yyyymdHHMM",date);

adjust field name if neccessary.

 

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