0

Hi experts, my time value display is the word "true" on Label2.caption and not a real time. On Label1.caption the is the exact date. Only the time got wrong. below is my code:

Private Sub Timer2_Timer()
Label1.Caption = Date
Label2.Caption = time
 End sub

I have a timer1 the dispaly is ok.

Kimangel.

2
Contributors
3
Replies
14
Views
4 Years
Discussion Span
Last Post by AndreRet
0
Label2.Caption = Format(Now, "hh:mm:ss")

Or...

Label2.Caption = Format(Time, "hh:mm:ss")

Edited by AndreRet

This question has already been answered. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.