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 is html for lists?

0 Answers  


What is picture tag in html?

0 Answers  


What is an api and list the api's available in html5

0 Answers  


What is purpose of getCurrentPosition() method of geolocation object of HTML5?

0 Answers  


What is the use of centre tag?

0 Answers  


What is a benefit of using the label element?

0 Answers  


What are the drawbacks of cookies?

0 Answers  


What is dynamic website with example?

0 Answers  


What is image map?

0 Answers  


Why do we use href?

0 Answers  


How do I untag someone?

0 Answers  


What is Text Field in Input Element?

0 Answers   HCL,


Categories