Reputation: 93
How do I convert the date to a month spelled out?
For example.
01/08/2015
= January
I have it code in excel =TEXT(value, "MMMM")
but we are shifting away from Excel to SQL Server.
Thanks
Upvotes: 0
Views: 542
Reputation: 531
select datename(month,convert(varchar,yourField,106)) as month
from yourTable
Upvotes: 0
Reputation: 1475
This is one way:
SELECT DATENAME(month, youDateField)) as Month
FROM YourTable
Upvotes: 0