Hi all,
I did wrong. In my database table there is a field name RecDate it's datatype is text(MS Access database).
There are three textboxes first one is for month; it's having 1 to 12 second is for date; its having items 1 to 31 and the third and last one is for year.
I am saving date like "+DropDownlist1.SelectedItem.Text+"/"+DropDownlist2.SelectedItem.Text+"/"+DropDownlist3.SelectedItem.Text+"/
It is ok.
Now when I featching records using query like orderby date. It's not working properly because query reads this date as string. I used this method in many forms. Its very time consuming to change it.
Is there any other method to do it right.
help me out pls. what should I do for this condition. I'll never repete this in future. I came to know for date field ur datatype shpould be always datetime.
Thanks a lot
never let you down..always be happy...