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?
Printable View
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?
do
lbl1.Caption = Format(Now, "hh:nn:ss")
instead
try this:Quote:
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?
Label1.Caption = CStr(Time)
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
Depends on the regional settings