1,105,534 Community Members

time display is true not a time value

Member Avatar
kimangel
Junior Poster in Training
73 posts since Jan 2013
Reputation Points: 13 [?]
Q&As Helped to Solve: 0 [?]
Skill Endorsements: 0 [?]
 
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.

Member Avatar
AndreRet
Industrious Poster
4,492 posts since Jan 2008
Reputation Points: 362 [?]
Q&As Helped to Solve: 499 [?]
Skill Endorsements: 24 [?]
 
0
 
Label2.Caption = Format(Now, "hh:mm:ss")

Or...

Label2.Caption = Format(Time, "hh:mm:ss")
Member Avatar
kimangel
Junior Poster in Training
73 posts since Jan 2013
Reputation Points: 13 [?]
Q&As Helped to Solve: 0 [?]
Skill Endorsements: 0 [?]
 
0
 

thank you sir.

Question Answered as of 1 Year Ago by AndreRet
Member Avatar
AndreRet
Industrious Poster
4,492 posts since Jan 2008
Reputation Points: 362 [?]
Q&As Helped to Solve: 499 [?]
Skill Endorsements: 24 [?]
 
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