Is there a script that will display a date in a set format no matter how it is entered. Ex. entered 021119 or 2/11/19 and auto displayed as 11-Feb-19.

New Here ,
Feb 08, 2019 Feb 08, 2019

Copy link to clipboard

Copied

Is there a script that will display a date in a set format no matter how it is entered.  Ex. entered 021119 or 2/11/19 and auto displayed as 11-Feb-19.

TOPICS
Acrobat SDK and JavaScript

Views

98

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

correct answers 1 Correct Answer

Most Valuable Participant , Feb 08, 2019 Feb 08, 2019
It happens automatically when you set the Format to Date (and use the latest version of Acrobat or Reader).

Likes

Translate

Translate
Most Valuable Participant ,
Feb 08, 2019 Feb 08, 2019

Copy link to clipboard

Copied

No. How will it know that "021119" is 11-Feb-2019 and not 02-Nov-2019 (as is common outside the US), or even 19-Nov-2002, etc.?

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 ,
Feb 08, 2019 Feb 08, 2019

Copy link to clipboard

Copied

Why want you this? The users can use the calendar popup.

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
New Here ,
Feb 08, 2019 Feb 08, 2019

Copy link to clipboard

Copied

The field is part of an adobe acrobat form.  Is there an option to include a calendar pop up ?

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
Most Valuable Participant ,
Feb 08, 2019 Feb 08, 2019

Copy link to clipboard

Copied

LATEST

It happens automatically when you set the Format to Date (and use the latest version of Acrobat or Reader).

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