Adsense
Popular Posts
- MySQL workbench -"Could not decrypt password cache"
- Install APXS in Redhat Linux
- react-pdf, display pdf in react.js
- Set Windows path command line
- MySQL date created and date modified
- Transfer modules between sites
- DataTable table order by numeric, not by text
- datatable order by nunmeric
- mod_auth_cas.so error: undefined symbol: SSL_connect
- JavaScript, remove trailing insignificant zeros after toFixed function
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