• Greetings!

    Would using date type 112 not remove the need to replace the "/" characters in the date string?

    This would reduce the date string portion from

    REPLACE(CONVERT(VARCHAR(10),@dt,111),'/','')

    to

    CONVERT(VARCHAR(8),@dt,112)