hi..
i need to populate gridview from a particular date and time till another.. ex: 1/2/2011 2:10 AM till 3/2/2011 3:00 PM. in my database i have two separate fields date and time. so how to do tis..

SELECT statement with two parameters.

sql="select * from tableName where tblDate>=@start_date and tblDate<=@end_date"
Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.