Home Articles FAQs XREF Games Software Instant Books BBS About FOLDOC RFCs Feedback Sitemap
irt.Org
#

Q1142 How do I add a number of days to a date?

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