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: Vanilla Javascript This is like chaos’s answer, but in one line: Where diff is the difference in minutes you want from oldDateObj‘s time. It can even be negative. Or as … Read more