How can i get age from a given date of birth in java script | Sololearn: Learn to code for FREE!
Neuer Kurs! Jeder Programmierer sollte generative KI lernen!
Kostenlose Lektion ausprobieren
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 Antworten
+ 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