hi,, can any1 tell solution for this
o/p i am getting in this order:
01/05/2010
02/05/2010
09/03/2010
30/04/2010
but i need in following way.
09/03/2010
30/04/2010
01/05/2010
02/05/2010
Any idea for doing this, in database i have birthDate as "Text" field.
CrishPosted May 14, 2010, 9:52 AM
have you used birthdate as nvarchar or anything else ? . becuase my side its working fine with nvarchar datatype.
yashvant kPosted May 14, 2010, 8:32 AM
I cant chage field to datetime property for it.
Dipa AhujaPosted May 14, 2010, 8:24 AM
CrishPosted May 14, 2010, 8:19 AM
please use below query
Select schoolmaster.Name from schoolmaster order by birthDate asc
If you have taken birthDate as Texttype then you need to convert it datetime and then you can sort it.
thanks