Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to add day, Date time in my HTML page

Status
Not open for further replies.

swaroop

Programmer
Joined
Feb 4, 2001
Messages
100
Location
US
Hi all,

I want to include Day and Date-Time to my webpage in html. How can I do this?

Thanks in advance.

Swaroop.
 
You can use javascript to display the date/time according to the user's computer:

Code:
<script language="javascript"><!--
var d = new Date();
document.write(d);
--></script>

If you want to show the server's time, you'll have to use server-side code, like PHP or ASP.

*cLFlaVA
----------------------------
[tt]tastes great, less filling.[/tt]
 
lol! indeed.

*cLFlaVA
----------------------------
[tt]tastes great, less filling.[/tt]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top