How can I convert a String to a Date in T-SQL?
My test case is the string: \'24.04.2012\'
\'24.04.2012\'
CONVERT(datetime, '24.04.2012', 104)
Should do the trick. See here for more info: CAST and CONVERT (Transact-SQL)