I want to get no month when I know only the name of the month. (If month name January should return 1)
I have tried this.
SELECT DATEPART(MM,'january 01 2011')
But here I want to convey the meaning of the entire date (January 01 2011). But I only need to pass the name of the month. (Without using the "Case")
Is there any way to do this?
source
share