Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

js date add days daylight saving

function addUTCDays(date, days) {
  var result = new Date(date);
  result.setUTCDate(result.getUTCDate() + days);
  //        ^^^               ^^^
  return result;
}
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #js #date #add #days #daylight #saving
ADD COMMENT
Topic
Name
6+9 =