|
| ||||||||||
| Tags: date time, website |
![]() |
| | Thread Tools | Search this Thread |
|
#1
| |||
| |||
| How can I display system date & time on my webpage?
I want to display the system Date & time to my website. How is this possible? |
|
#2
| |||
| |||
| 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> |
|
#3
| |||
| |||
| 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
| ||||
| ||||
| 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 |
![]() |
|
| Thread Tools | Search this Thread |
| |
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 |