December 31, 2008

Due Date Calc

I added a little javascript calc routine to the sidebar of this blog. If you want to you may copy and paste it into your Myspace page or any HTML page. (Of course, you can change the date and description to any important date you would like to count down the days to.) Here's the code...
<SCRIPT LANGUAGE="JavaScript">

date = new Date("July 26, 2009");
description = " Ruth's due date";
now = new Date();
diff = date.getTime() - now.getTime();
days = Math.floor(diff / (1000 * 60 * 60 * 24));
document.write(days+1 + " days until " + description);

</script>
Posted by dancoy at December 31, 2008 10:17 AM
Comments

Congrats on the impending new little one!

Posted by: LR at January 5, 2009 05:00 PM