How can we calculate DOB from date field?

New Here ,
Jul 26, 2018

Copy link to clipboard

Copied

Calculate dob and print as Year, month and date Like (29 years 8 months 24 days). and is there any way to vadidate normal text box as mm/dd/yyyy ?

TOPICS
Acrobat SDK and JavaScript, Windows

Views

71

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

How can we calculate DOB from date field?

New Here ,
Jul 26, 2018

Copy link to clipboard

Copied

Calculate dob and print as Year, month and date Like (29 years 8 months 24 days). and is there any way to vadidate normal text box as mm/dd/yyyy ?

TOPICS
Acrobat SDK and JavaScript, Windows

Views

72

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
Jul 26, 2018 0
Most Valuable Participant ,
Jul 26, 2018

Copy link to clipboard

Copied

Try searching the forums. This issue was discussed here many times in the past, including code samples.

Try looking for "age calculation".

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
Reply
Loading...
Jul 26, 2018 0
try67 LATEST
Most Valuable Participant ,
Jul 26, 2018

Copy link to clipboard

Copied

And there's no need to validate a field (although that's possible). Just set its Format to Date and specify that pattern.

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
Reply
Loading...
Jul 26, 2018 0