Sorting by Dates in Gridview Asp.NET(VB)

This is an extension from Question ID: 28012439

I have 2 date fields that I am looking to be able to support Sorting
I attempted to create 2 hidden fields and put the dates in strings in the Row Data Bound but I am still having trouble.
I still have to do this in the same format as my last question where I build the SQL and change the Order By dynamically, which works great but how could I incorporate that to sort Dates?

Appreciate any help
jknj72Asked:
Who is Participating?
 
CodeCruiserCommented:
Did you try putting the filename in Order By clause? Is field of type Date or varchar?
0
 
jknj72Author Commented:
I didnt realize that there are dates in these fields but if the To Date is the same as the From date then it would just appear blank so while it was sorting correctly it appeared as if something was wrong. I will give you the points for your assistance.  THANKS
0
 
jknj72Author Commented:
or just to be fair I will give 1/2 points .... Thanks again
0
 
jknj72Author Commented:
thanks again
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.