We would like to know how to add 10 days to current date.
<!DOCTYPE html>
<html>
<head>
<script type='text/javascript'
src="https://datejs.googlecode.com/files/date.js"></script>
<script type='text/javascript'>
console.log(Date.today().addDays(-10));
console.log(Date.today().addDays(-10).toString());
</script><!-- w ww.j a v a 2 s . c om-->
</head>
<body>
</body>
</html>
The code above is rendered as follows: