Convert date in text format to datetime format in T-SQL

Posted by Rob on Stack Overflow See other posts from Stack Overflow or by Rob
Published on 2010-05-10T18:47:10Z Indexed on 2010/05/10 18:54 UTC
Read the original article Hit count: 183

Filed under:
|
|

I have a client supplied file that is loaded in to our SQL Server database. This file contains text based date values i.e. (05102010) and I need to read them from a db column and convert them to a normal date time value = '2010-05-10 00:00:00.000' as part of a clean-up process.

Any guidance would be greatly appreciated.

© Stack Overflow or respective owner

Related posts about t-sql

Related posts about datetime