Updated:
I am trying to filter a DataTable based on a particular date. My datatable has a column "whn" which contains dates. A Sample date from the DataTable:
{21/02/2012 10:03:53} object {System.DateTime}
Here is the code I am using to try and filter the DataTable:
String datevalue= "21/02/2012 10:03:53";
DataRow[] foundRows;
foundRows = dttemp.Select(String.Format("whn = '{0}'", datevalue));
However this does not work and returns 0 rows. Even though I know that a row containing the date in "datevalue" exists.
Unsure why this is not working, any help is appreciated.
Thanks.