0

I am trying to do this
declare @slice VARCHAR = '2013-06-04 13:42:41.647'
SELECT REPLACE(CONVERT(VARCHAR, CAST(@slice AS DATETIME), 109), ' ', '-')
but I get error
Msg 241, Level 16, State 1, Line 2
Conversion failed when converting date and/or time from character string.
Where am I going ...