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

What is a web worker in html5? Explain

646


What are html functions?

539


State bullet types available in HTML?

671


What is the image tag?

606


What is title tag in html?

725


What is the difference between div and span?

760


What is the role of html?

640


Which is better html or html5?

630


Does footer go inside body?

572


Explain some of the common lists to design a web page.

629


What is a tag ict?

739


Why do we use html?

660


How many types of heading does an html contain?

1131


What is WebSQL?

813


What is the difference between select and datalist in html?

619