How to convert 19 Dec 2012
to date format returned by getdate() 2012-12-22
.
I need this for date comparison because if I compare 19 Dec 2012 with 19 Nov 2012 , 19 Nov 2012 will turn out to be greater date due to alphabetical comparison.
EDIT
I am not database designer for this table , was given table as it is to work on .Otherwise would not have used varchar to store date