Answers for "current date time plus javascript"


jquery get 2 hours frmo now

      <title>JavaScript setHours Method</title>
         var dt = new Date();
         dt.setHours( dt.getHours() + 2 );
         document.write( dt );
Posted by: Guest on April-17-2020

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 "current date time plus javascript"

Code answers related to "Javascript"

Browse Popular Code Answers by Language