Use DATEPART To Do This
SELECT Convert(VARCHAR(10),DATEPART(mm,yourfield),111) + ' ' +
Convert(VARCHAR(10),DATEPART(yyyy,yourfield),111) AS outputmonthyear
FROM yourtableName
http://sqlfiddle.com/#!6/fa887/7
DATEPART Definition and Use
The DATEPART () function is used to return one part of a date / time, for example, year, month, day, hour, minute, etc.
Syntax DATEPART (datepart, date) Where date is a valid date expression.
For more information, visit
http://www.w3schools.com/sql/func_datepart.asp
source
share