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



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

Answer / 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

More HTML DHTML Interview Questions

What do you mean by html?

0 Answers  


Why is XHTML needed? Isn't HTML good enough?

1 Answers  


How to create a nested webpage in html?

0 Answers  


How many types of lists are available in html?

0 Answers  


Why do we need br?

0 Answers  






How do I make a new paragraph?

4 Answers  


Why do we use html?

0 Answers  


What is the use of an iframe tag?

0 Answers  


What is applet code?

0 Answers  


Who is the author of html?

0 Answers  


explain the difference between html and html5

0 Answers  


Is WebSQL a part of HTML 5 specification?

0 Answers  


Categories