SyntaxFix
Write A Post
Hire A Developer
Questions
This is already in :
Age from Date of Birth using JQuery
or alternatively u can use Date.parse() as in
var date1 = new Date("10/25/2011"); var date2 = new Date("09/03/2010"); var date3 = new Date(Date.parse(date1) - Date.parse(date2));