[Webinar] Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 428
  • Last Modified:

Full Month Name

Is there a convert date function that will allow 2006-01-01 00:00:00.000
to be returned as 'January 2006'?
0
johnnyg123
Asked:
johnnyg123
2 Solutions
 
Patrick MatthewsCommented:
SELECT DATEPART(m, DateColumn) & ' ' & CAST(YEAR(DateColumn) AS varchar) AS MonthAndYear
FROM SomeTable
0
 
Aneesh RetnakaranDatabase AdministratorCommented:
select DATENAME(month,'2006-01-01 00:00:00.000') + ' '+CAST(YEAR(' 2006-01-01 00:00:00.000')AS VARCHAR)
0

Featured Post

NEW Veeam Backup for Microsoft Office 365 1.5

With Office 365, it’s your data and your responsibility to protect it. NEW Veeam Backup for Microsoft Office 365 eliminates the risk of losing access to your Office 365 data.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now