Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

increment day date javascript


  incrementeDate(dias: any) {
    var tomorrow = new Date();
    tomorrow.setDate(tomorrow.getDate() + dias);
    return tomorrow;
  }

  const date = incrementeDate(5);

// start date: 9/30/21
// result date: 10/05/21
Source by gist.github.com #
 
PREVIOUS NEXT
Tagged: #increment #day #date #javascript
ADD COMMENT
Topic
Name
2+9 =