Click here to Skip to main content
15,886,799 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
i have many record of different different date i want to display data of current date how we can do
Posted
Comments
Maciej Los 21-Mar-14 3:11am    

SQL
select * from tableName where CONVERT(varchar(10),date_column,103)=convert(varchar(10),GETDATE(),103)
 
Share this answer
 
v2
First of all, your database table must have a date type field to record the date of each record in the table. Say your table is called 'table1' and it has a date field called 'entrydate', then your sql query to retrieve all records of current date from table1 will look like:
SQL
SELECT * FROM table1 WHERE entrydate = getdate();
 
Share this answer
 
v3

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