Hi
Sir, I need your help to cast a SQL SP . Please take a look to the column: AO505. BKDATE.
I want to display this as dd-mm-yyyy.
Please help me
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Lakshmanan Sethu SankaranarayanPosted Mar 17, 2014, 4:12 AM
Nathan RPosted Mar 17, 2014, 3:53 AM
Thank you for your co operation. Here the complete query:-
SELECT A0505.PNAME, A0052.FNAME AS DOCTOR, A0505.SLOTE as TIME,(CONVERT(VARCHAR(20),A0505.BKDATE,110)),A0505.PHONE FROM A0505
INNER JOIN A0052 ON A0505.EMPCD=A0052.EMPCD WHERE A0505.SMSTATUS=0 AND A0052.ISACTIVE = 'y'
KalaiPosted Mar 17, 2014, 3:44 AM
select CONVERT(VARCHAR(20),A0505.BKDATE,110) from A0505
Lakshmanan Sethu SankaranarayanPosted Mar 17, 2014, 3:41 AM