1.11M Members

time display is true not a time value

 
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.

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

Or...

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

thank you sir.

Question Answered as of 1 Year Ago by AndreRet
 
0
 

Only a pleasure. Happy coding.

You
This question has already been solved: Start a new discussion instead
Post:
Start New Discussion
Tags Related to this Article