I have a btnSearch_Click event in which it searches a DB with all the data that is between the entered date and today's date. Here is my logic:
Dim TodayDT As DateTime
TodayDT = DateTime.Now
...
"AND Convert(char(10),dbo.Table1.ThisDate,101) BETWEEN '" & txtThisDate.Text & "' AND '" & TodayDT.ToString("{0:MM/dd/yyyy}"
& "' " & _
[/blue]
Nothing returns on the ASP.NET page. Does someone see something wrong in my logic?
Dim TodayDT As DateTime
TodayDT = DateTime.Now
...
"AND Convert(char(10),dbo.Table1.ThisDate,101) BETWEEN '" & txtThisDate.Text & "' AND '" & TodayDT.ToString("{0:MM/dd/yyyy}"
[/blue]
Nothing returns on the ASP.NET page. Does someone see something wrong in my logic?