|
-
Apr 25th, 2002, 01:12 PM
#1
Thread Starter
Hyperactive Member
time format in vb...
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?
-
Apr 25th, 2002, 01:15 PM
#2
Re: time format in vb...
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?
i think that is in your system settings...
-
Apr 25th, 2002, 01:16 PM
#3
Thread Starter
Hyperactive Member
tried that, my sstem clock in bottom right is in 12 hour
-
Apr 25th, 2002, 01:17 PM
#4
VB Code:
Private Sub Command1_Click()
Dim MyTime As Variant
MyTime = Format(Time, "hh:mm:ss AMPM")
MsgBox MyTime
End Sub
-
Apr 25th, 2002, 01:19 PM
#5
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
yeah that works.. but if you call the time function and your system settings are on 12 hour.. why would it return military time???
-
Apr 25th, 2002, 01:24 PM
#6
Thread Starter
Hyperactive Member
-
Apr 25th, 2002, 01:31 PM
#7
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???
I don't think so, but it would make an interesting test. 
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.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|