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

Current year subtract DOB year in YYYY format

New Here ,
Mar 04, 2023 Mar 04, 2023

Copy link to clipboard

Copied

Hi All,

 

Could you please help me out figuring out the javascript for arriving below-desired value.

 

As I give DOB year in YYYY Format in Text1 Field, then Text2 Field should display Current Year Minus DOB Year. If I give 1990 as DOB, then the result must be 33 Years.

 

Hope I have explained my problem and look forward to receiving the solution.

TOPICS
JavaScript

Views

782

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 ,
Mar 04, 2023 Mar 04, 2023

Copy link to clipboard

Copied

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
Community Expert ,
Mar 04, 2023 Mar 04, 2023

Copy link to clipboard

Copied

LATEST

This is not how you calculate someone's age.

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