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

Popular posts from this blog

node.js - Node js - Trying to send POST request, but it is not loading javascript content -

javascript - Replicate keyboard event with html button -

javascript - Web audio api 5.1 surround example not working in firefox -