Help! Convert SQL server date to yyyy mon dd

Posted on 2006-05-23
Last Modified: 2008-03-17
Hi all,
 I am looking for some t-sql that will convert dates held within my sql server from dd/mm/yyyy to yyyy mon dd i.e. 2006 May 23

I am familier with the convert function but cannot find any reference to this format on books online, and inputting a custom made date function such as 'yyyy mon dd' into convert where the style number goes does not work.

Any ideas, please help!

Question by:crich
    LVL 75

    Accepted Solution

    SELECT CAST(YEAR(GETDATE())as varchar)+' ' + CONVERT(varchar(6),getdate(),109)

    Author Comment

    quick and accurate answer!

    Featured Post

    Highfive + Dolby Voice = No More Audio Complaints!

    Poor audio quality is one of the top reasons people don’t use video conferencing. Get the crispest, clearest audio powered by Dolby Voice in every meeting. Highfive and Dolby Voice deliver the best video conferencing and audio experience for every meeting and every room.

    Join & Write a Comment

    Nowadays, some of developer are too much worried about data. Who is using data, who is updating it etc. etc. Because, data is more costlier in term of money and information. So security of data is focusing concern in days. Lets' understand the Au…
    For both online and offline retail, the cross-channel business is the most recent pattern in the B2C trade space.
    Via a live example, show how to backup a database, simulate a failure backup the tail of the database transaction log and perform the restore.
    Via a live example, show how to set up a backup for SQL Server using a Maintenance Plan and how to schedule the job into SQL Server Agent.

    734 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    24 Experts available now in Live!

    Get 1:1 Help Now