Monday, September 21, 2009

JavaScript:: Date and Time

I used JavaScript to display day, month and time on my HTML document. I did it agglomerating code from several tutorial sites. I created two external .js files one each for time and date respectively and then called the time and date functions in the body section of the HTML documents and I imported the external files in the head section of the HTML document. This was difficult and I was tempted to use PHP to document both date and time functions in the HTML document. But I wanted to establish this task using JavaScript. So, I borrowed the code from the websites for displaying the date: day month year in string and time: The JavaScript clock in action and modified them while adding them on my web pages.

<129:584>

References: -

Display date: day month year in string, http://www.java2s.com/Code/JavaScript/Development/Displaydatedaymonthyearinstring.htm

How to display current date in html page, http://www.dotnetspider.com/forum/216753-How-display-currect-date-html-page.aspx

Day and Date Display with HTML, http://xlecom.com/?q=node/325

Tutorial: Creating a JavaScript Clock, http://www.elated.com/articles/creating-a-javascript-clock/

The JavaScript clock in action, http://www.elated.com/res/File/articles/development/javascript/creating-a-javascript-clock/clock.html

No comments:

Post a Comment