VBcoders Guest



Don't have an account yet? Register
 


Forgot Password?



Displays Current Day of the week, Time with AM/PM and Current Date

by Chirag Patel (1 Submission)
Category: Miscellaneous
Compatability: VB 6.0
Difficulty: Unknown Difficulty
Originally Published: Mon 2nd July 2007
Date Added: Mon 8th February 2021
Rating: (1 Votes)

Displays Current Day of the week, Time with AM/PM and Current Date

Rate Displays Current Day of the week, Time with AM/PM and Current Date



'
' By: Chirag Patel
' Email: [email protected]
'
'
Private Sub Form1_Load()
   lblDate.Caption = Date
   lblDate.Caption = Format (Date, "dddd - mmm, dd yyyy")
End Sub

'Above Code will display Wednesday - Feb, 07 2007 in lblDate

' To display current time with Seconds and AM/PM
' Set Interval = 5 under Timer1 Property

Private Sub Timer1_Interval()
   lblTime.Caption = Timer1
End Sub

' Above Code will dispaly 10:12:35 AM in lblTime

Download this snippet    Add to My Saved Code

Displays Current Day of the week, Time with AM/PM and Current Date Comments

No comments have been posted about Displays Current Day of the week, Time with AM/PM and Current Date. Why not be the first to post a comment about Displays Current Day of the week, Time with AM/PM and Current Date.

Post your comment

Subject:
Message:
0/1000 characters