Quantcast
Channel: Transact-SQL forum
Viewing all articles
Browse latest Browse all 23857

Stuck convert string to date in MSSQL

$
0
0
How to convert string to datetime in sqlserver ?

I have date time 13072013, and i want to convert it to 2013-07-13

CONVERT(DATETIME,'13072013', 112)

How to do that ?

Regards,


Viewing all articles
Browse latest Browse all 23857

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>