Results 1 to 2 of 2

Thread: Date format

  1. #1

    Thread Starter
    Fanatic Member
    Join Date
    Oct 2001
    Location
    Indiana
    Posts
    612

    Date format

    I want to get the date format as the following.

    12/19/02

    When I use this....

    format(now,"d")
    It comes out as.... 12/19/2002

    This doesn't work anymore: Format(now,"mm/dd/yy")

    Does anyone know a format command that will put the date in the format I want?

    I really don't want to put it in variables and strip it down. If I can't get it with one format command, then I will just deal with it.

    Thanks
    David Wilhelm

  2. #2

    Thread Starter
    Fanatic Member
    Join Date
    Oct 2001
    Location
    Indiana
    Posts
    612

    Talking I got it

    I got it. Here it is if anyone is interested.

    Dim strDate = DateTime.Now.ToString("MM/dd/yy") & " " & Format(Now, "t")

    Output is: 12/19/02 11:50 AM
    David Wilhelm

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