My SQL Server system is 2016.
As topic, I want to convert YYYYMMDD-HHMMSS to mm/dd/yyyy hh:mm:ss, and use dynamic SQL to fulfill this.
My da
This should get the format you want... but there are probably better ways.
select convert(varchar(16),convert(date,left(ID,8)),101) + ' ' + substring(substring(ID,10,6),1,2) + ':' + substring(substring(ID,10,6),3,2) + ':' + substring(substring(ID,10,6),5,2)