Return to Snippet

Revision: 40322
at January 30, 2011 09:44 by BebenKoben


Initial Code
<script type="text/javascript">
    var newDt = new Date();
    document.writeln("<b>Current Date</b> :" + newDt + "<br/>");
    // add 3 days to the current date
    newDt.setDate(newDt.getDate() + 3);
    document.writeln("<b>New Date</b> :" + newDt);
</script>

Initial URL

                                

Initial Description

                                

Initial Title
Current and New Date

Initial Tags
javascript

Initial Language
JavaScript