Formatting date

Discussion in 'ASP General' started by Bill, Feb 3, 2004.

  1. Bill

    Bill Guest

    I'm currently entering the date into my date field using the now()
    function, which delivers this result: 2/2/2004 9:08:09 AM which is
    fine for some cases.

    However, when retreiving this result, sometimes I'd just like to pull
    up the first part, such as the 2/2/2004 and cut out the rest. How do
    I take this date output, and format it to show only what I want? I'm
    writing all this in ASP.

    Thanks,

    Bill
     
    Bill, Feb 3, 2004
    #1
    1. Advertising

  2. Bill

    Ray at Guest

    Take a look at the formatDateTime function in your VBScript documentation
    that you downloaded from here.
    http://www.microsoft.com/downloads/details.aspx?FamilyId=01592C48-207D-4BE1-8A76-1C4099D7BBB9

    Ray at work

    "Bill" <> wrote in message
    news:...
    > I'm currently entering the date into my date field using the now()
    > function, which delivers this result: 2/2/2004 9:08:09 AM which is
    > fine for some cases.
    >
    > However, when retreiving this result, sometimes I'd just like to pull
    > up the first part, such as the 2/2/2004 and cut out the rest. How do
    > I take this date output, and format it to show only what I want? I'm
    > writing all this in ASP.
    >
    > Thanks,
    >
    > Bill
     
    Ray at, Feb 3, 2004
    #2
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Matt
    Replies:
    1
    Views:
    645
    Matthew Speed
    Nov 8, 2003
  2. Peter Grison

    Date, date date date....

    Peter Grison, May 28, 2004, in forum: Java
    Replies:
    10
    Views:
    3,363
    Michael Borgwardt
    May 30, 2004
  3. Matt
    Replies:
    2
    Views:
    565
    Pete Becker
    Nov 8, 2003
  4. Matt
    Replies:
    3
    Views:
    754
    Richard Heathfield
    Nov 8, 2003
  5. Matt
    Replies:
    11
    Views:
    425
    Aaron Bertrand [MVP]
    Nov 8, 2003
Loading...

Share This Page