/ Published in: JavaScript
Expand |
Embed | Plain Text
//Function return age. function getAge(Y,M,D){ var now=new Date(),m=now.getMonth()+1,d=now.getDate(); return now.getFullYear()-Y+(M>m?-1:M==m&&D>d?-1:0); }
Comments
Subscribe to comments
You need to login to post a comment.

Great...