Popular Posts

SQLblog.com - The SQL Server blog spot on the web

Friday, June 30, 2017

Split DATE formatted 'YYYY-MM-DD' into Concatenated YEAR and MO field

SQLServerCentral » Latest topics
Split DATE formatted 'YYYY-MM-DD' into Concatenated YEAR and MO field
Hello, I have a date field in the DATE in the format of 'YYYY-MM-DD' and how it is displayed, and I'm trying to split our Year and Month and concatenate into 'YYYYMM' format. I've tried DATEPART, DATEADD and  other variations and I'm not quite gettin

No comments: