I want to get individual dates from my dbtable named tblFormno2 in ascending order. For this, I wrote the following query, but it does not work properly.
Date_submit column declared as datetime
select distinct (convert(nvarchar(100),date_submit,103)) as dob from tblFormno2 order by dob asc
Here the output is displayed as
05/07/2011 06/03/2011 06/07/2011 07/04/2011 08/01/2012
instead
06/03/2011 07/04/2011 05/07/2011 06/07/2011 08/01/2012
How to solve this problem???
source share