I have following sql which is show previous days records from table.
SELECT * FROM tblMeter WHERE
(Date >= DATEADD(day, DATEDIFF(day, 1, GETDATE()), 0))
AND
(Date < DATEADD(day, DATEDIFF(day, 0, GETDATE()), 0))
But how can I collect records with datetimepicker value in vb.net.
Any help will be appreciated.
Thanks
Then all you need to do is execute the command and use the results. If you need help with that, I can explain it further