Filtering by date with DataTable.RowFilter while ignoring time
Posted
by Sam
on Stack Overflow
See other posts from Stack Overflow
or by Sam
Published on 2010-03-11T16:37:39Z
Indexed on
2010/03/12
18:57 UTC
Read the original article
Hit count: 328
How do I filter for records on a DataTable which are on a certain date?
I've tried plain [datecol] = #11 March 2010#
and CONVERT([datecol],'System.DateTime') = #11 March 2010#
. With no luck.
MSDN: RowFilter Expression Syntax
Solution
[datecol] >= #11 March 2010 00:00# AND [datecol] <= #11 March 2010 23:59:59#
© Stack Overflow or respective owner