wrb Posted May 13, 2015 Share Posted May 13, 2015 From a textbox with the date of birth as return label in ages in weeks, months and years. Link to comment Share on other sites More sharing options...
davej Posted May 13, 2015 Share Posted May 13, 2015 var d1 = new Date(year, month, day, hours, minutes, seconds, milliseconds); var n1 = d1.getTime(); // number of milliseconds between d1 and Jan 1, 1970var d2 = new Date(); // nowvar n2 = d2.getTime(); // number of milliseconds between d2 and Jan 1, 1970 http://www.w3schools.com/jsref/jsref_gettime.asp Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now