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. Advertisements

  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. Advertisements

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. RP
    Replies:
    4
    Views:
    748
  2. Kerri

    Date Formatting problem

    Kerri, Aug 20, 2003, in forum: ASP .Net
    Replies:
    0
    Views:
    360
    Kerri
    Aug 20, 2003
  3. Kerri

    Date Formatting problem

    Kerri, Aug 20, 2003, in forum: ASP .Net
    Replies:
    0
    Views:
    347
    Kerri
    Aug 20, 2003
  4. Matt
    Replies:
    1
    Views:
    846
    Matthew Speed
    Nov 8, 2003
  5. Peter Grison

    Date, date date date....

    Peter Grison, May 28, 2004, in forum: Java
    Replies:
    10
    Views:
    3,802
    Michael Borgwardt
    May 30, 2004
  6. Matt
    Replies:
    2
    Views:
    767
    Pete Becker
    Nov 8, 2003
  7. Matt
    Replies:
    3
    Views:
    943
    Richard Heathfield
    Nov 8, 2003
  8. Matt
    Replies:
    11
    Views:
    655
    Aaron Bertrand [MVP]
    Nov 8, 2003
Loading...