Results 1 to 3 of 3

Thread: Format (Time) ??

  1. #1

    Thread Starter
    Addicted Member
    Join Date
    Oct 1999
    Location
    NY, USA.
    Posts
    240

    Smile

    Hi,
    I was playing around with the format function,
    Code:
    Format(now, "Short Time")
    Inoticed that it always returns the time in a 24hr format. How can I format the time and display it in a 12hr format?

    example:
    I want 1:30
    instead of 13:30
    Omar
    [email protected]
    http://omar.caribwalk.com
    To God Be The Glory

    I see Tech People ...

  2. #2
    Addicted Member
    Join Date
    Jun 1999
    Location
    Los Angeles
    Posts
    186
    Hi there, use this:

    Format("13:30:02", "h:mm a/p")

    You will get 1:30 p,

    Good luck,
    André

  3. #3
    Addicted Member
    Join Date
    Jun 1999
    Location
    Los Angeles
    Posts
    186
    Of course it should be:
    Format(Now,"h:mm a/p")

    André

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