If you're using SQL Server, you can use the DATEDIFF() and GETDATE() functions.
SELECT [ToDate],
COUNT(ToDate) AS [Count]
FROM evevents
WHERE DATEDIFF(dd,[todate], GETDATE()) = 0
GROUP BY ToDate
ORDER BY ToDate DESC
E
erdinoxyz author12/10/2008
Thanks
I solve this problem.
This code bottom. It very good work.
stSQL="SELECT ToDate, Count(ToDate) AS [Count]FROM evevents WHERE ToDate LIKE '%" & FormatDatetime(now(), 2) & "%' GROUP BY ToDate order by ToDate DESC;" (solve = LIKE command)