I have a table named NewsMaster which has a column named NewsDate .
Date is stored as 2016-05-19 00:00:00.000 in this table.
Now i want to retrieve this date as something like October-2016 . that's it. looked so many blogs but nothing found.
DATENAME(month,GETDATE()) 'Month Name'
is this helpful? am i close? need modification.
SELECT DATENAME(MONTH, NewsDate) + '-' + DATENAME(YEAR, NewsDate) FROM NewsMaster