Snitz Forums 2000
Snitz Forums 2000
Home | Profile | Register | Active Topics | Members | Search | FAQ
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 Community Forums
 Code Support: ASP (Non-Forum Related)
 Dynamically displaying time
 New Topic  Topic Locked
 Printer Friendly
Author Previous Topic Topic Next Topic  

abienz
Starting Member

3 Posts

Posted - 17 July 2001 :  12:26:56  Show Profile
Hi there, I wonder if there's anyone wise enough to help me here,

I want to know how to display the time on an ASP page using VBscript, I need this to be dynamic though, so if seconds were diplsyed you could see the time go by, however I only need to display the hrs and mins


andygenge
Starting Member

United Kingdom
30 Posts

Posted - 17 July 2001 :  12:30:47  Show Profile
It can easily be done in client side Javascript there are many tutorials availiable to do this



Edited by - andygenge on 17 July 2001 12:32:25
Go to Top of Page

camusflage
Starting Member

USA
26 Posts

Posted - 17 July 2001 :  17:48:18  Show Profile
quote:
I want to know how to display the time on an ASP page using VBscript


vbscript has built-in constants for this. vbshorttime and vblongtime. Take a look at them. If that's not good enough, using the datepart function against them should cover whatever you need.

Mike

Go to Top of Page

activealli
Starting Member

8 Posts

Posted - 18 July 2001 :  09:47:47  Show Profile
<%=FormatDateTime(now,4)%>



Go to Top of Page

Deleted
deleted

4116 Posts

Posted - 18 July 2001 :  15:52:49  Show Profile
quote:

<%=FormatDateTime(now,4)%>



BTW this will be the server time (in server/page LCID settings). If you want to show client time you have to use JS. If you want a "non-stop changing" time, this is not appropriate.

Look at this topic.

Think Pink

Edited by - bozden on 18 July 2001 15:59:20
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Topic Locked
 Printer Friendly
Jump To:
Snitz Forums 2000 © 2000-2021 Snitz™ Communications Go To Top Of Page
This page was generated in 0.23 seconds. Powered By: Snitz Forums 2000 Version 3.4.07