|
-
Mar 26th, 2002, 01:17 PM
#1
Thread Starter
Hyperactive Member
Time
I use this code:
label1.caption = time
i know this is a silly question, but how do i tell if the time captured is in PM or AM?
-
Mar 26th, 2002, 01:20 PM
#2
Lively Member
do
lbl1.Caption = Format(Now, "hh:nn:ss")
instead
Its not a bug
Its a undocumented feature !
-
Mar 26th, 2002, 01:21 PM
#3
PowerPoster
Re: Time
Originally posted by fkheng
I use this code:
label1.caption = time
i know this is a silly question, but how do i tell if the time captured is in PM or AM?
try this:
Label1.Caption = CStr(Time)
-
Mar 26th, 2002, 01:23 PM
#4
PowerPoster
hmmm,
now that i try it both ways, it shows the pm either way:
Label1.Caption = CStr(Time)
AND
Label1.Caption = Time
give me the PM
Im using VB6 SP5
-
Mar 26th, 2002, 02:27 PM
#5
Frenzied Member
Depends on the regional settings
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
|