I need the month+year from the datetime in SQL Server like \'Jan 2008\'. I\'m grouping the query by month, year. I\'ve searched and found functions like datepart, convert, e
the best way to do that is with :
dateadd(month,datediff(month,0,*your_date*),0)
it will keep your datetime type