There are a number of javascript date libraries out there that will do all you want and more. Here is an example using XDate
<div id="result"><div/>
var now = new XDate();
var then = new XDate(2013, 04, 01, 0, 0, 0, 0);
document.getElementById("result").textContent = now.diffWeeks(then).toFixed(1) + " Weeks";
Available of jsfiddle
Here is with Moments.js
<div id="result"><div/>
var then = moment("Dec 25, 1995");
document.getElementById("result").textContent = moment(then, "YYYYMMDD").fromNow();
also vailable on jsfiddle