ZAIN ULARIFEEN

ZAIN ULARIFEEN

  • NA
  • 133
  • 148k

How to search a record from database by date range.

Mar 4 2013 1:23 PM
 Hi
I have one column called date in database and my database datecolumn contain like this 2013-02-22,but in front end iam using 2 ajaxdate pickers and searching for a record
i am writing the query like this,i want to know whether it is correct or not
SELECT * from table where Date between ='" + txtfromdate.Text + "and" +txttodate +"'";

Answers (2)