• simply reverse the process...

    declare @yyyymmdd char(8)

    set @yyyymmdd = '20070918'

    select replace(convert(varchar,convert(datetime,@yyyymmdd,10), 10),'-','')

    gives

    091807

    Kev