• Louis Hillebrand (8/31/2015)


    If the source is always a 6 character string:

    Rearrange the input to a yymmdd string with two substrings.

    Convert to date using CONVERT using style 12 (yymmdd)

    DECLARE @D nvarchar(6) = '083115'

    SELECT CONVERT(DateTime, SUBSTRING(@D, 5, 2) + SUBSTRING(@D, 1, 4), 12)

    Louis.

    Thanks Louis for the solution.