Dumb Question...but I'm stuck!!!

  • In my query, I just want to know how to format my date fields so that only the date is displayed, without the time.

    For example, my statement looks like this...

    SELECT a.DBR_DATE

    FROM MDRECHDR

    --------------------------------------------

    It will produce a result that looks like this...

    DBR_DATE

    -----------

    2002-06-29 00:00:00.000

    I want it to look like this...

    06/29/2002

    Any suggestions???

  • SELECT CONVERT(VARCHAR(10),a.DBR_DATE,101)

    FROM MDRECHDR

  • Thanks a lot...that came right through!!!

  • An after thought read about convert in BOL 2000, you'll most likely going to need it again.

  • what is BOL 2000? I can't believe that I brain farted on the 'CONVERT' feature...thanks for all the help!

  • BOL is Books Online (SQL Help files)

    Nigel Moore
    ======================

  • BOL = SQL Server Books Online

  • Got it...thanks...

Viewing 8 posts - 1 through 7 (of 7 total)

You must be logged in to reply to this topic. Login to reply