You are here: irt.org | FAQ | JavaScript | Date | Q1142 [ previous next ]
<script language="JavaScript"><!-- function addDays(myDate,days) { return new Date(myDate.getTime() + days*24*60*60*1000); } alert(addDays(new Date(),10)); //--></script>
©2018 Martin Webb