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.

Recommended Answers

All 3 Replies

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

Or...

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

thank you sir.

Only a pleasure. Happy coding.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.