VBcoders Guest



Don't have an account yet? Register
 


Forgot Password?



An easy way to do a Clock and Date

by info_hacker (1 Submission)
Category: Miscellaneous
Compatability: Visual Basic 3.0
Difficulty: Beginner
Date Added: Wed 3rd February 2021
Rating: (7 Votes)

This code displays the date and time In digital format!!!
very cool and easy PLEASE VOTE(good votes only) lol only joking

Inputs
A form 2 Labels (make them blank) 2 timers (make both intervals 1)
Assumes
nothing
Code Returns
nothing
Side Effects
None that i know of.

Rate An easy way to do a Clock and Date

'Replace the text in the first timer with the following'
Private Sub Timer1_Timer()
Label1.Caption = Time
End Sub
'Replace the text in the Second timer with the following'
Private Sub Timer2_Timer()
Label2.Caption = Date
End Sub
'Remember make sure you set the timer intervals to 1'
'and make sure the labels are blank'
'otherwise it wont work!'

Download this snippet    Add to My Saved Code

An easy way to do a Clock and Date Comments

No comments have been posted about An easy way to do a Clock and Date. Why not be the first to post a comment about An easy way to do a Clock and Date.

Post your comment

Subject:
Message:
0/1000 characters