Atryeu Designs » Web Design » Freebies » Javascript » Date and Time
Feel free to use the scripts listed below for your site if you wish. Before you can use them, you must agree to the Terms of Use. Please do not give out these codes, send people here to get them instead. Please do not remove my comments from the codes either.

To use the scripts, copy and paste the codes to your website. Pay attention to special instructions listed along with the codes below. The codes listed below will have a colored background so you know where the code snippets are.

Simple Date Code

Code Example:

Copy and paste the below code in your Body tag wherever you want your Date to be shown.

<!-- Simple Date Code written by Atryeu Designs -->
<script language="javascript">
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>