am trying to query a table for rows that have dates between two dates. The query i am using is:-
addInventorySelectAll.SelectCommand = "SELECT * FROM AddInventory WHERE (DATE BETWEEN '"+row2Text1.Text+"' AND '"+row2TextBox2.Text+"')";
am using a data source in an asp.net page. The textboxes have calender extender ajax control on them which was used while adding data to the tables. So the dates are in in same mm/dd/yyyy format. The query gives no result. any idea on what am i doing wrong here ?
CAST and CONVERT