I have column of varchar
data type with values like 5/3/2012
. I want to convert into int as 2016-05-03
. When I'm trying to do so, it is returning null as output
cast(convert(varchar(10), '5/3/2012', 112) as int)
I have column of varchar
data type with values like 5/3/2012
. I want to convert into int as 2016-05-03
. When I'm trying to do so, it is returning null as output
cast(convert(varchar(10), '5/3/2012', 112) as int)