Results 1 to 4 of 4

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

  1. #1
    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?

  2. #2
    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!

  3. #3
    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.

  4. #4
    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

Similar Threads

  1. Replies: 2
    Last Post: 29-11-2011, 08:29 AM
  2. Display webpage in iframe
    By Shophia_D in forum Software Development
    Replies: 3
    Last Post: 24-11-2009, 06:12 PM
  3. To display webpage inside another webpage
    By Faakhir in forum Technology & Internet
    Replies: 3
    Last Post: 24-03-2009, 10:59 AM
  4. Display System date & time to VB application
    By VijayW in forum Software Development
    Replies: 3
    Last Post: 16-02-2009, 06:53 PM
  5. Replies: 4
    Last Post: 23-07-2008, 06:54 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •