I want to write a query to get the date in dd / MM / yyyy format. (I do not want time).
So, I wrote a query like
SELECT Convert(varchar,A.InsertDate,103) as Tran_Date
But when I write the order by Tran_Date, it gives me the result in the wrong order.
Can any body suggest what I should do.
thanks
source share