0

How can i get age from a given date of birth in java script

14th Aug 2020, 2:34 AM
Sobbe Waan
Sobbe Waan - avatar
2 Answers
+ 2
Sobbe Waan , Have tried to solve this on your own? If you have then link the code in description. I'll be glad to help you further.
14th Aug 2020, 4:34 AM
šŸ‡®šŸ‡³OmkaršŸ•‰
šŸ‡®šŸ‡³OmkaršŸ•‰ - avatar
+ 1
Try to use Date object, it is already a defined object in JavaScript. Try to subtract current date (birth date) from current date.. To define Date object into your project: let SomeVar = new Date(); Read about it in Sololearn JavaScript course. https://www.sololearn.com/learn/JavaScript/1244/
14th Aug 2020, 5:20 AM
Monat15
Monat15 - avatar