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)
2.1m questions
2.1m answers
60 comments
57.0k users