Jan 22, 2005 #1 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.
Hi all, I want to include Day and Date-Time to my webpage in html. How can I do this? Thanks in advance. Swaroop.
Jan 22, 2005 #2 cLFlaVA Programmer Joined Jun 14, 2004 Messages 6,450 Location US 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] Upvote 0 Downvote
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]
Jan 22, 2005 #3 Foamcow Programmer Joined Nov 14, 2002 Messages 6,092 Location GB Or they could look at the clock in their taskbar ;-) Foamcow Heavy Industries - Web design and ranting Toccoa Games - Day of Defeat gaming community Target Marketing Communications - Advertising, Direct Marketing and Public Relations "I'm making time Upvote 0 Downvote
Or they could look at the clock in their taskbar ;-) Foamcow Heavy Industries - Web design and ranting Toccoa Games - Day of Defeat gaming community Target Marketing Communications - Advertising, Direct Marketing and Public Relations "I'm making time
Jan 22, 2005 #4 cLFlaVA Programmer Joined Jun 14, 2004 Messages 6,450 Location US lol! indeed. *cLFlaVA ---------------------------- [tt]tastes great, less filling.[/tt] Upvote 0 Downvote