Having date in 1/26/2016 14:54
format and need it in 20160126
format in MSSQL.
I am using REPLACE(CONVERT(DATE, DATE_OF_AQUISITION,112),'-','')
but it is giving error
"Msg 9807, Level 16, State 0, Line 47 The input character string does not follow style 112, either change the input character string or use a different style."