k, im tryin to make a program that does a logging process and am using Time before what it logs, but my Time always comes out in 24 hour, anyway of changing it to 12 hour?
Printable View
k, im tryin to make a program that does a logging process and am using Time before what it logs, but my Time always comes out in 24 hour, anyway of changing it to 12 hour?
i think that is in your system settings...Quote:
Originally posted by adzzzz
k, im tryin to make a program that does a logging process and am using Time before what it logs, but my Time always comes out in 24 hour, anyway of changing it to 12 hour?
tried that, my sstem clock in bottom right is in 12 hour :(
VB Code:
Private Sub Command1_Click() Dim MyTime As Variant MyTime = Format(Time, "hh:mm:ss AMPM") MsgBox MyTime End Sub
yeah that works.. but if you call the time function and your system settings are on 12 hour.. why would it return military time???Quote:
Originally posted by Hack
VB Code:
Private Sub Command1_Click() Dim MyTime As Variant MyTime = Format(Time, "hh:mm:ss AMPM") MsgBox MyTime End Sub
cheers :>
I don't think so, but it would make an interesting test. :pQuote:
Originally posted by kleinma
yeah that works.. but if you call the time function and your system settings are on 12 hour.. why would it return military time???
Anyway, I was just using the Time Function in my example. If you used that routine for real, then you would probably have the time stored in a variable, which could be more easily manipulated.