Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

Javscript Add days on Date

function addDays(date, days) {
  const copy = new Date(Number(date))
  copy.setDate(date.getDate() + days)
  return copy
}

const date = new Date();
const newDate = addDays(date, 10);
Source by codewithhugo.com #
 
PREVIOUS NEXT
Tagged: #Javscript #Add #days #Date
ADD COMMENT
Topic
Name
5+1 =