Go Back   TechArena Community > Software > Software Development
Become a Member!
Forgot your username/password?
Register Tags Active Topics RSS Search Mark Forums Read

Sponsored Links



How can I display system date & time on my webpage?

Software Development


Reply
 
Thread Tools Search this Thread
  #1  
Old 16-02-2009
Member
 
Join Date: Feb 2009
Posts: 15
How can I display system date & time on my webpage?
  

Hi,
I want to display the system Date & time to my website.
How is this possible?

Reply With Quote
  #2  
Old 16-02-2009
Member
 
Join Date: Feb 2009
Posts: 12
Re: How can I display system date & time on my webpage?

Copy the declarations and code below and paste directly into your VB project.

Code:
<HTML>
<HEAD>
<TITLE>My Web Page</TITLE>
</HEAD>
<BODY>
Welcome to my web page. The current time is <%= Time() %> 
on <%= Date() %>.
</BODY>
</HTML>
I hope this is what you are looking for!
Reply With Quote
  #3  
Old 16-02-2009
Member
 
Join Date: Jan 2009
Posts: 36
Re: How can I display system date & time on my webpage?

The timer is the right solution. But only in client/server environment. I did this also in WEB forms and the timer caused changes in the form - the cursor jumps after the timer event automaitacally on the first item of the form because of refreshing the form. Also the docs say there will be to much trafic to the Forms server.
Reply With Quote
  #4  
Old 16-02-2009
Member
 
Join Date: May 2008
Posts: 63
Re: How can I display system date & time on my webpage?

Try this code:
Code:
Private Sub Form_Load()
    
    ' run every half second
    Timer1.Interval = 500
    
End Sub

Private Sub Timer1_Timer()
    
    txtTime.Text = Time
    txtDate.Text = Date
    
End Sub
Reply With Quote
Reply

  TechArena Community > Software > Software Development
Tags: ,



Thread Tools Search this Thread
Search this Thread:

Advanced Search


Similar Threads for: "How can I display system date & time on my webpage?"
Thread Thread Starter Forum Replies Last Post
error message: cant login This computer date/time is not synchornize with the date/time of network fazalhassan Networking & Security 2 29-11-2011 08:29 AM
Display webpage in iframe Shophia_D Software Development 3 24-11-2009 06:12 PM
To display webpage inside another webpage Faakhir Technology & Internet 3 24-03-2009 10:59 AM
Display System date & time to VB application VijayW Software Development 3 16-02-2009 06:53 PM
Adjusting the Clock in Windows XP to display full Time and Date Gramm Windows XP Support 4 23-07-2008 06:54 AM


All times are GMT +5.5. The time now is 11:58 AM.