• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
0

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

222

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
Community Expert ,
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.

 

Votes

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