sql - mm/dd/yy TO DATE -
i using sql server 2014 , have been trying convert this:
receivedate 07/01/15 07/02/15
into this:
receivedate 2015-07-01 2015-07-02
i have tried with:
try_convert(date,srd.receivedate,103) try_convert(date,srd.receivedate,101)
any suggestion?
try this:
select convert(varchar(10), srd.receivedate, 120)
Comments
Post a Comment