SyntaxFix
Write A Post
Hire A Developer
Questions
I know it is an old topic, but If your SQL server version is higher than 2012.
SQL server
There is another simple option can choose, FORMAT function.
SELECT FORMAT(GetDate(),'yyyyMM')
sqlfiddle