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