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

Popular posts from this blog

javascript - how to protect a flash video from refresh? -

visual studio 2010 - Connect to informix database windows form application -

android - Associate same looper with different threads -