I realize it's been done, but I couldn't find just what I needed so I wrote my own. And I'm sharing it if any is interested.
Code:<!-- Inserts day, month, date, and time of day --> <!-- Use DIV tags around code to define output --> <!-- This code was written by Steve Olson --> <!-- Free to use if you leave these comment lines in --> <Script language=javascript type="text/javascript"> <!-- Hide currentDate = new Date currentDay = new Array ("Sunday", "Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday") currentMonth = new Array ("January", "February", "March", "April", "May", "June", "July", "August", "September", "October", "November", "December") if (currentDate.getHours() > 0 && currentDate.getHours() < 13) { currentHour = currentDate.getHours() } else { if (currentDate.getHours() == 0) { currentHour = 12 } else { currentHour = currentDate.getHours() - 12 } } if (currentDate.getMinutes() < 10) { currentMin = "0" + currentDate.getMinutes() } else { currentMin = currentDate.getMinutes() } if (currentDate.getHours() >= 0 && currentDate.getHours() < 12) { amPm = "am" } else { amPm = "pm" } document.write(currentDay[currentDate.getDay()] + ", " + currentMonth[currentDate.getMonth()] + " " + currentDate.getDate() + " " + currentHour + ":" + currentMin + " " + amPm) // --> </Script>




Bookmarks