The following is a method using JavaScript to display the United States standard day, date and time format on your website. This code will update the time without requiring a refresh.
I am leaving the css in the style tag for this example, however it is recommended that you put it in a .css file and call them with the class tag.
Copy and paste the following code into a text file and name it: date_time.js. Upload this file to your server.
function date_time(id) {
date = new Date;
year = date.getFullYear();
month = date.getMonth();
months = new Array('January', 'February', 'March', 'April', 'May', 'June', 'July', 'August', 'September', 'October', 'November', 'December');
Continue reading