Answers for "js date get hours in 12 hours"

0

javascript get 7 days from now

var date = new Date();
date.setDate(date.getDate() - 13);

console.log(date);
Posted by: Guest on March-11-2020
1

date add hours javascript

Date.prototype.addHours = function(h) {
  this.setTime(this.getTime() + (h*60*60*1000));
  return this;
}
Posted by: Guest on February-27-2020

Code answers related to "js date get hours in 12 hours"

Code answers related to "Javascript"

Browse Popular Code Answers by Language