This script will print out a date a certain number of days in the future. You can tell a customer their order will be filled by the date in the future, etc. This script is great!
JavaScript Source Code 3000: Clocks: Future Date: Simply click inside the window below, use your cursor to highlight the script, and copy (type Control-c or Apple-c) the script into a new file in your text editor (such as Note Pad or Simple Text) and save (Control-s or Apple-s). The script is yours!!!
<!-- TWO STEPS TO INSTALL FUTURE DATE:
1. Copy the coding into the HEAD of your HTML document 2. Add the last code into the BODY of your HTML document -->
<!-- STEP ONE: Paste this code into the HEAD of your HTML document -->
<SCRIPT language="JavaScript"> <!-- Original: Kevin Myers (kevinmyers@unforgettable.com) --> <!-- Web Site: http://www.geocities.com/SiliconValley/Bay/7554 -->
<!-- Begin function AddDays(form) { DaysToAdd=document.form.DaysToAdd.value;
var now=new Date(); var newdate=new Date(); var newtimems=newdate.getTime()+(DaysToAdd*24*60*60*1000); newdate.setTime(newtimems); document.form.display.value=newdate.toLocaleString(); } // End --> </SCRIPT>
<!-- STEP TWO: Copy this code into the BODY of your HTML document -->