javascript add days to date
function addDays(date, days) {
var result = new Date(date);
result.setDate(result.getDate() + days);
return result;
}var myCurrentDate=new Date();
var myFutureDate=new Date(myCurrentDate);
myFutureDate.setDate(myFutureDate.getDate()+ 8);//myFutureDate is now 8 days in the future
Also in JavaScript:
- convert an image into Base64 string using JavaScript
- boton de copiar en html y js
- javascript append to paragraph
- mdn js sort
- ngingx proxy express get real ip
- how to edit a fil with vanilla js
- jquery select specific radio button by value
- on hover display block jquery
- react native multiple touchableopacity
- node js return json
- rxjs mapto vs tap
- momentjs utcoffset
- javascript get element position relative to document
- nodejs btoa
- javascript add adjacent html
- javascript get index
- javascript sort array of object by property
- date object javascript
- javascript foreach get key and value
- jquery add class
- random item from array javascript
- left_field in jsgrid
- javascript remove duplicate strings from array
- jspdf Cannot create property 'callback' on number '15'