Hi,
I want to concatenate a date like this
select datename(YEAR,GETDATE())+'-'+datename(MONTH,GETDATE())
the result of this query is
2013-september
I want the output should be like this
2013-09-01
I tried this
select datename(YEAR,GETDATE())+'-'+datename(M,GETDATE())+'-01
but showing error
i need the output like this
2013-09-01
how to solve this
Regards
Baiju