If you can, use moment.js. JavaScript doesn't have very good native date/time methods. http://momentjs.com/docs/#/manipulating/add/