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

Current year subtract DOB year in YYYY format

New Here ,
Mar 04, 2023 Mar 04, 2023

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
909
Translate
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
Translate
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
LATEST

This is not how you calculate someone's age.

Translate
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