sql - How to convert a string to Date format -
i have following sql statement line:
cast(convert(varchar(10), ct.attr2752, 110) datetime) 'new'
which displays:
2014-12-19 00:00:00.000
i trying convert 12-19-2014
, use date instead of string.
how can accomplish that?
i know have use cast , convert not sure how.
cast(convert(varchar(10), ct.attr2752, 110) date) 'new'
Comments
Post a Comment