irt.org | Knowledge Base | 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>
Feedback on 'Q1142 How do I add a number of days to a date?'
How to do the impossible with Google Gears
Out and About