Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

js date subtract days

    dayRemove(daysToAdd) {
      const now = new Date();
      this.data = new Date(now.getTime() - daysToAdd * 86400000).toISOString().substr(0, 10);
    },
 
PREVIOUS NEXT
Tagged: #js #date #subtract #days
ADD COMMENT
Topic
Name
9+3 =