Auto update date & time on webpage

I would like to have shows update date & time on my webpage? What codes should I put to get me the update date & time?
rowfeiAsked:
Who is Participating?

[Webinar] Streamline your web hosting managementRegister Today

x
 
James MurrellConnect With a Mentor Product SpecialistCommented:
personally i use this

<SCRIPT LANGUAGE="JavaScript">  <!-- hide script begin var m = "Page lastupdated
" + document.lastModified; var p = m.length-8; document.writeln("<center>");
document.write(m.substring(p, 0)); document.writeln("</center>");
// End --> </SCRIPT>
0
 
NIMTUG_SimonCommented:
Do you mean the current Date Time which updates it self like a clock or are you talking about the last updated date of a record?
0
 
rowfeiAuthor Commented:
Sorry, I mean the current date & time which updates it self.
0
Never miss a deadline with monday.com

The revolutionary project management tool is here!   Plan visually with a single glance and make sure your projects get done.

 
NIMTUG_SimonConnect With a Mentor Commented:
You would basically write a Javascript script which runs itself ever second

e.g. http://javascript.internet.com/time-date/date-clock-internet-time.html
0
 
mekhConnect With a Mentor Commented:
This should help you if you are looking simple time and date in your website using javascript:

http://dynamicdrive.com/dynamicindex6/index.html

You can also use PHP or ASP for auto date and time in your website.
0
 
rowfeiAuthor Commented:
Thanks
0
All Courses

From novice to tech pro — start learning today.