When you apply DataView1.RowFilter = "DateColumnName > " + DateValue, you get this error:
Cannot perform '>' operation on System.DateTime and System.Double
To use a Date value in a filter, you must use a pound "#" symbol around the date value like in the following:
dsView.RowFilter = "DateColumnName >= #" + DateTime.Today + "#";

Vishal GilbilePosted Feb 28, 2013, 11:35 PM EST
Mahesh its good tip by why should i use #. I mean what the reason for using it.
wws35801editedPosted Mar 21, 2007, 6:59 PM EDTEdited Mar 21, 2007, 7:00 PM EDT
I get the following error 'System.DateTime.Today' is a 'property' but is used like a 'method' When I use the following Filter: bsvUnion_TSeries_TGrp_Test.Filter = "FDate > #" + 12/01/2006 +"# and FDate <= #" + DateTime.Today() + "#"; Any help will be greatly appreciated.
Moses SolimanPosted Feb 22, 2007, 8:35 AM EST
Thank for the tip Mahesh