Full Month Name

Posted on 2007-10-15
Last Modified: 2008-05-21
Is there a convert date function that will allow 2006-01-01 00:00:00.000
to be returned as 'January 2006'?
Question by:johnnyg123
    LVL 92

    Accepted Solution

    SELECT DATEPART(m, DateColumn) & ' ' & CAST(YEAR(DateColumn) AS varchar) AS MonthAndYear
    FROM SomeTable
    LVL 75

    Assisted Solution

    by:Aneesh Retnakaran
    select DATENAME(month,'2006-01-01 00:00:00.000') + ' '+CAST(YEAR(' 2006-01-01 00:00:00.000')AS VARCHAR)

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    Highfive Gives IT Their Time Back

    Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

    CCModeler offers a way to enter basic information like entities, attributes and relationships and export them as yEd or erviz diagram. It also can import existing Access or SQL Server tables with relationships.
    Slowly Changing Dimension Transformation component in data task flow is very useful for us to manage and control how data changes in SSIS.
    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.
    Using examples as well as descriptions, and references to Books Online, show the documentation available for datatypes, explain the available data types and show how data can be passed into and out of variables.

    779 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

    12 Experts available now in Live!

    Get 1:1 Help Now