|
|
|
Display Current Date
Add this code where ever you want the date to be displayed.
CODE |
<SCRIPT LANGUAGE = "JavaScript">
<!--
// Array of day names
var dayNames = new
Array("Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday");
var monthNames = new
Array("January","February","March","April","May","June","July",
"August","September","October","November","December");
var dt = new Date();
var y = dt.getYear();
if (y < 1000) y +=1900;
document.write(dayNames[dt.getDay()] + ", "
+ monthNames[dt.getMonth()] + " " +
dt.getDate() + ", " + y);
// -->
</SCRIPT>
|
Tutorial By Xtasy
|
|