Discussion Locked

Date & Time in HTML

0 helpful
6 replies
Closed to new repliesThis discussion is closed. It stays readable, but it takes no new replies.

I am designing a web page for a local company & he wants me to place the date & time on each page. Is there an HTML tag to do this or does anyone know the code to enable this?
Cheers,
Chris.

6 replies

by epepke

You can write a little Java applet that just creates a Gregorian Calendar, which defaults to right now and spits out the time. That will give you the client time. For the server time, use some sort of dynamic HTML.

by vinodhl

The most simplest way would be write a function in Javascript that creates an object of date in and call it "onload" of each page

by handerso

in asp you could do:
<%
dim myDate
myDate=formatdatetime(now(), vbshortdate)
response.write mydate
%>
in javascript you could do:

Hope this helps.

This discussion is closed to new replies.