Results 1 to 5 of 5

Thread: Time

  1. #1

    Thread Starter
    Hyperactive Member
    Join Date
    Jan 2002
    Posts
    332

    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?

  2. #2
    Lively Member
    Join Date
    Mar 2002
    Location
    Warrington, England
    Posts
    70
    do
    lbl1.Caption = Format(Now, "hh:nn:ss")
    instead
    Its not a bug
    Its a undocumented feature !

  3. #3
    PowerPoster
    Join Date
    Feb 2001
    Location
    Crossroads
    Posts
    3,046

    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)

  4. #4
    PowerPoster
    Join Date
    Feb 2001
    Location
    Crossroads
    Posts
    3,046
    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

  5. #5
    Frenzied Member
    Join Date
    Jan 2000
    Location
    Brooklyn NY USA
    Posts
    1,258
    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
  •  



Click Here to Expand Forum to Full Width