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, ExpireDate, 121) AS ExpireDate
will do what is needed, result:
2012-04-24 00:00:00.000