When I select date in SQL it is returned as 2011-02-25 21:17:33.933. But I need only the Date part, that is 2011-02-25. How can I do this?
2011-02-25 21:17:33.933
2011-02-25
First Convert the date to float (which displays the numeric), then ROUND the numeric to 0 decimal points, then convert that to datetime.
ROUND
convert(datetime,round(convert(float,orderdate,101),0) ,101)