If you are looking for a current time and date HTML code you can get it from here. This code is for your website and it will show up on your webpage as local current time. Also if you wish to modify it you can nodify as you like if you have good knowledge on HTML code. The time and date code you can set up on your webpage very easily. 

 

Get the date HTML code from below and just copy it and paste to your website:

 

<script language="JavaScript">

<!-- Begin

// Get today's current date.
var now = new Date();

// Array list of days.
var days = new Array('Sunday','Monday','Tuesday','Wednesday','Thursday','Friday','Saturday');

// Array list of months.
var months = new Array('Jan','Feb','Mar','Apr','May','Jun','Jul','Aug','Sep','Oct','Nov','Dec');

// Calculate the number of the current day in the week.
var date = ((now.getDate()<10) ? "0" : "")+ now.getDate();

// Calculate four digit year.
function fourdigits(number){
return (number < 1000) ? number + 1900 : number;
}

// Join it all together
today = days[now.getDay()] + ", " +
months[now.getMonth()] + " " +
date + ", " +
(fourdigits(now.getYear())) ;

// Print out the data.
document.write(today);

// End -->
</script>

 

Comments  

0 # Jamal JU 2012-07-29 06:36
Great! I were looking for it and got the same. Thanks.
Reply