Site Sponsored By: SQLDSC - SQL Server Desired State Configuration
Please start any new threads on our new
site at https://forums.sqlteam.com. We've got lots of great SQL Server
experts to answer whatever question you can come up with.
Hi,I need to get extract the year and month from the currentdate and concatenate with 01YYYYMM01e.g. 20140501I have tried various ways :leftdatepartcastconvertBut just not happening, please can anyone help...Thanks
Just an edit to djSELECT CONVERT(CHAR(6), GETDATE(), 112 )+ '01' AS TheDate -- 20140601---------------Murali KrishnaYou live only once ..If you do it right once is enough.......