Not a Member Yet,
Click here to Register
How do you like the new design?
It's cool, great job
[tally: 70%] 70%
It's okay
[tally: 20%] 20%
Its OK but I liked the old layout better
[tally: 0%] 0%
Please bring the old one back
[tally: 10%] 10%

votes: 10

ID: 17
Viewed: 3125
Added: Nov 23, 2001
Version:
Snippet uploaded by: snippet
Written By: Unknown
Demo: Sorry, no demo



User Rated at: 0 Stars
Rate This:

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 yearname;
if (year < 1000) year += 1900;
if (year == 2001) yearname = "2001";
if (year == 2002) yearname = "2002";
if (year == 2003) yearname = "2003";
if (!yearname) yearname = year;
document.write('<FONT FACE="ARIAL, HELVETICA, SANS-SERIF" SIZE=2 COLOR="#000000">');
document.write("" +monthname+ " " +date+ ", " +yearname+ "");
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.


Replying to a Comment...


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.

© 2002 - 2017 snippetlibrary.com All Rights Reserved. Conditions