After you use the lblTime.Caption = Format(Time, ) to display only the hour is there any way you can show only hours up to 12? Then go back to 1?
Thanks again.
Printable View
After you use the lblTime.Caption = Format(Time, ) to display only the hour is there any way you can show only hours up to 12? Then go back to 1?
Thanks again.
use hh:mm:ss
If you want to show AM or PM then
Format(Now, "hh:mm:ss AM/PM")
This will show 0 at midnight.
VB Code:
Option Explicit Private Sub Form_Load() the lblTime.Caption = Hour(Now) Mod 12 End Sub
How does that help? Why would you want to do that?
Quote:
Originally Posted by koolzap351
Looks like what he wants. :)
Where does he say anything about zero?
I was just letting him know that there is a 0:00 even if he stops at 12. You can't go back to 1 after 23:59.
Yeah, but I think that AM/PM version goes back to 12:00 AM after 11:59 PM. I actualy hate this. I like the 24 hour format.
Sorry it took so long to reply, mostly its just for learning experience :-p. Thanks a lot for all your help, AGAIN!