How to add 30 minutes to a JavaScript Date object?

Using a Library If you are doing a lot of date work, you may want to look into JavaScript date libraries like Datejs or Moment.js. For example, with Moment.js, this is simply: var newDateObj = moment(oldDateObj).add(30, ‘m’).toDate(); Vanilla Javascript This is like chaos’s answer, but in one line: var newDateObj = new Date(oldDateObj.getTime() + diff*60000); … Read more