Horje
get age by birthday js Code Example
get age by birthday js
function getAge(dateString) {
    var today = new Date();
    var birthDate = new Date(dateString);
    var age = today.getFullYear() - birthDate.getFullYear();
    var m = today.getMonth() - birthDate.getMonth();
    if (m < 0 || (m === 0 && today.getDate() < birthDate.getDate())) {
        age--;
    }
    return age;
}




Javascript

Related
Cannot find module 'iso-639-3/to-1' Code Example Cannot find module 'iso-639-3/to-1' Code Example
javascript scroll to bottom of div Code Example javascript scroll to bottom of div Code Example
how to revers bulain in js Code Example how to revers bulain in js Code Example
adonisjs sync method Code Example adonisjs sync method Code Example
js filter undefined from array Code Example js filter undefined from array Code Example

Type:
Code Example
Category:
Coding
Sub Category:
Code Example
Uploaded by:
Admin
Views:
10