0
How can i get age from a given date of birth in java script
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.
+ 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/