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

Is localstorage async?

0 Answers  


why it is important to set the meta information?

0 Answers  


Why doesn't my title show up when I click "check it out"?

0 Answers  


What is textcontent?

0 Answers  


What is a list tag and mention the most commonly used list tags?

0 Answers  






Why td is used in html?

0 Answers  


What is the difference between <div> and <frame>?

0 Answers  


How to create mailto link in html

0 Answers  


Difference between :first-child and :nth-of-child

0 Answers  


What is the difference between basefont and font tag?

0 Answers  


What are major attributes?

0 Answers  


How do I indent a lot of text?

1 Answers  


Categories