Click here to Skip to main content
15,891,905 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
how to fetch database selecting by date in asp.net
Posted
Comments
CRDave1988 6-Feb-12 2:40am    
I understand that u r new here but please make ur question more clear what u want n give example if possible.

Retrieve data in storedprocedure,getdate() will return current date
C#
Select * from tablename where Date=getdate()


or
if your date column is of datatype DateTime

C#
Select * from tablename where Date='2011-12-09'
 
Share this answer
 
Comments
Tech Code Freak 6-Feb-12 6:18am    
5up!
Hi,

Try using provided ASP.NET DataSource controls. For example SqlDataSource[^]. It supports parameters and ih has intuitive designer. There is so much examples for this topic on net. Just google... :)
 
Share this answer
 
Comments
Tech Code Freak 6-Feb-12 6:18am    
5up!

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900