Results 1 to 5 of 5

Thread: [RESOLVED] Formatting Now Function

  1. #1

    Thread Starter
    Fanatic Member doofusboy's Avatar
    Join Date
    Apr 2003
    Posts
    526

    Resolved [RESOLVED] Formatting Now Function

    How would I get the Now function in VB to return this:

    Wednesday, 8/3/2005 10:33:04 AM

    instead of just:

    8/3/2005 10:33:04 AM

    ?

    Any assistance appreciated.
    Last edited by doofusboy; Aug 3rd, 2005 at 10:30 AM.
    Do canibals not eat clowns because they taste funny?

  2. #2
    I'm about to be a PowerPoster!
    Join Date
    Jan 2005
    Location
    Everywhere
    Posts
    13,647

    Re: Formatting Now Function

    Format$(Now, vbLongDate)

    At least, I think it is LongDate. At any rate, Format$ is the function you want.

  3. #3
    Fanatic Member Bombdrop's Avatar
    Join Date
    Apr 2001
    Location
    St Helens, England, UK
    Posts
    667

    Re: Formatting Now Function

    YOu could try this.

    VB Code:
    1. Format(Now, "DDDD, dd/MM/YY")

    Hope this helps!!

  4. #4

    Thread Starter
    Fanatic Member doofusboy's Avatar
    Join Date
    Apr 2003
    Posts
    526

    Resolved Re: Formatting Now Function

    Thanks, exactly what I was looking for.
    Do canibals not eat clowns because they taste funny?

  5. #5
    Fanatic Member Bombdrop's Avatar
    Join Date
    Apr 2001
    Location
    St Helens, England, UK
    Posts
    667

    Re: [RESOLVED] Formatting Now Function

    if you widh to show am or pm just ammed like so.

    VB Code:
    1. Debug.Print Format$(Now, "DDDD, dd/MM/YY hh:mm:ss am/pm")

    Hope this helps!!

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