

ID: 17
Viewed: 3740
Added: Nov 23, 2001
Version:



Snippet uploaded by: snippet
Written By: Unknown
Demo: Sorry, no demo



Thank you for your vote. Please wait...
It appears you already voted for this snippet
It appears your vote value was empty


Displays the Date. put it in the body where you want to display the date.
<!---Head--->
none
<!---Body--->
<script language="JavaScript">
<!-- hide JavaScript
var now = new Date();
var month = now.getMonth();
var date = now.getDate();
var year = now.getYear();
var monthname;
if (month == 0) monthname = "January";
if (month == 1) monthname = "February";
if (month == 2) monthname = "March";
if (month == 3) monthname = "April";
if (month == 4) monthname = "May";
if (month == 5) monthname = "June";
if (month == 6) monthname = "July";
if (month == 7) monthname = "August";
if (month == 8) monthname = "September";
if (month == 9) monthname = "October";
if (month == 10) monthname = "November";
if (month == 11) monthname = "December";
var yea\r\name;
if (year < 1000) year += 1900;
if (year == 2001) yea\r\name = "2001";
if (year == 2002) yea\r\name = "2002";
if (year == 2003) yea\r\name = "2003";
if (!yea\r\name) yea\r\name = year;
document.write('<FONT FACE="ARIAL, HELVETICA, SANS-SERIF" SIZE=2 COLOR="#000000">');
document.write("" +monthname+ " " +date+ ", " +yea\r\name+ "");
document.write('</FONT>');
// end hide JavaScript -->
</script>
No Comments to show


Please completely fill out the form below if you want to review this snippet. All reviews are subject to validation.
Adding your comment. Please wait...
Thanks for adding your comment!. After further review it will be added.
There was a problem adding your comment. Please try again.
Please complete all the fields in the form before sending.