-2

I have a table with a date column in it ('yyyy-mm-dd'). I want to be take from that column the month of each date and print it out as in 'MMM' style or the full name of the month (E.g 2017-09-22 --> "Sept" or "September")

I know how to extract the month but not how to convert it...i tried something with NAMEDATE that i found in a similar question but i was getting errors... any tips?

Vadim Kotov
  • 8,084
  • 8
  • 48
  • 62
noel293
  • 514
  • 5
  • 21

1 Answers1

2

Use MONTHNAME

SELECT MONTHNAME('2008-02-03');
        -> 'February'
Stranger
  • 134
  • 6