How do I display the current date or time in my document?

Answer Posted / guest

With server-side includes. Ask your webmaster if this is
supported, and what the exact syntax is for your server. But
this will display the local time on the server, not for the
client. And if the document is cached, the date will of
course be incorrect after some time.

JavaScript can be used to display the local time for the
client, but as most people already have one or more clocks
on their screen, why display another one?

Is This Answer Correct ?    0 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How do I set the focus to the first form field?

633


What is list tag in html?

620


What is the difference between basefont and font tag?

714


Which element provides the autocomplete feature in a textbox?

779


What are web sockets?

738


What is row and column?

593


Describe the use of "img" Tag in HTML?

673


What is ul in html?

619


What does b mean in code?

612


How many types of heading does an html contain?

1118


What is a Web Worker?

739


What is the use of Canvas Element in HTML5?

633


If I do not put will HTML 5 work?

626


What is the main purpose of html?

662


What is alt text used for?

690