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

Eliminating error during Convert from datetime to varchar

$
0
0

I am using SQL 2008 R2.

I am using this command:

select Convert(varchar(12),Cast(out_date as datetime),101) From MyTable

The output shows several rows of data and then returns an error:

Conversion failed when converting date and/or time from character string.

What is the syntax to eliminate errors from this select command?  Thanks


MisterT99


Viewing all articles
Browse latest Browse all 23857

Trending Articles



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