Adsense
Popular Posts
- MySQL workbench -"Could not decrypt password cache"
- mod_auth_cas.so error: undefined symbol: SSL_connect
- JavaScript, remove trailing insignificant zeros after toFixed function
- Set Windows path command line
- JavaScript Arrays and Associate Arrays
- Design date and signature box in Latex
- Install APXS in Redhat Linux
- super(props) in React
- jQuery, toggle the display
- PHP function for input sanitizing
Monday, June 15, 2015
JavaScript: add days to current date
Below is JavaScript: to add days to current date:
var someDate = new Date();
//11 days are added in current date
someDate.setDate(someDate.getDate() + 11);
var dateFormated = someDate.toDateString();
alert(dateFormated);
The result will be like
Fri June 26 2015
Labels:
javascript
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment