Skip to main content
2 of 3
Add example, move links around.
ThisClark
  • 14.9k
  • 11
  • 73
  • 103

If you can, use moment.js. JavaScript doesn't have very good native date/time methods. The following is an example Moment's syntax:

var nextWeek = moment().add(7, 'days'); 

Reference: http://momentjs.com/docs/#/manipulating/add/

user2910265
  • 894
  • 1
  • 10
  • 15