formatting date output in Select query

  • Hi,

    I have a table in which i store values and it also has date fields. When i type a select query the date fields are displayed as '2003-05-21 00:00:00' format.

    Is there any way that i can use some function in the select query to output the date in 'dd/mm/yyyy' format?

    Thanks in advance

    Regards

    Hitendra

  • Look at CONVERT in SQL BOL there are several format options you can use. For your needs it would be

    CONVERT(char,column,103)

Viewing 2 posts - 1 through 1 (of 1 total)

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