Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

add days to date javascript dd/mm/yyyy in input date

  defaultInputDate() {
    var now = new Date();
    var day = ("0" + now.getDate()).slice(-2);
    var month = ("0" + (now.getMonth() + 1)).slice(-2);
    var today = now.getFullYear() + "-" + month + "-" + day;
    return today;
  }
Source by gist.github.com #
 
PREVIOUS NEXT
Tagged: #add #days #date #javascript #input #date
ADD COMMENT
Topic
Name
5+6 =