Hi To All,
Am new to .net pls help to me,
I need From-TO dates query in Sql Server 2005, i have two textboxs, based on that textbox date values i need to display events to the user.
I need from and To dates query in sql server 2005,
4 Answers
Know the answer? Post it. Somebody with the same question will find it here.

Naresh AvariRank #2,678 · 520 reputationPosted Aug 21, 2012, 12:43 AM EDT
If you have two textboxes called as txtStartDate and txtEndDate.
Hope this helps you...
Hemant KumarRank #1,202 · 1.5K reputationPosted Aug 20, 2012, 11:30 PM EDT
Try this Query
select * from tbl_abc where trunc(StartTime) between to_date('2009-07-15',
'YYYY-MM-DD') and to_date('2009-07-16', 'YYYY-MM-DD');
Do refer this link for Getting the data based on the To and From Dates in SQL SERVER
http://www.aspdotnet-suresh.com/2012/08/query-to-get-data-between-two-dates-in.html
Prabhakar Reddy101 reputationPosted Aug 21, 2012, 2:07 AM EDT
Hemant KumarRank #1,202 · 1.5K reputationPosted Aug 21, 2012, 2:11 AM EDT
Mark as "Accepted Answer" if it helps you .