Displaying Dates in particular format

  • Is there any way of displaying SQL dates in the following format:

    ddmmmyyyy

    i.e. 01Apr2005

    Thanks in advance

     

    Carl

  • Discovered how to do it:

    select REPLACE(CONVERT(CHAR(11),[testdate],106), ' ','') AS [testdate]

    from testdate

    Carl

  • select replace(convert(char(11),cast('2005-09-23' as datetime),13),' ','')

  • Do you show data from database directly to end user? Without any front-end application?

    Define the presentation format is a task for a application, not SQL Server.

    _____________
    Code for TallyGenerator

  • Hi,

    The purpose of the formatting was for a report not a front end application.

     

    Regards

    Carl

Viewing 5 posts - 1 through 4 (of 4 total)

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