I have a datatable
with 4 columns and one of them is smalldatetime
type. When I retrieve datatable from SQL base, I would like to query further through datatable
, but only by a specific time. Is this possible?
I am tryin with something like this:
DataRow[] rows = dataset.Tables[0].Select("resStart = 'some date '" + myTime+"'");
and specifically I am trying to navigate through dates and times in datagrid so finally it dhould retreive one row by query like this
DataRow[] rows = dataset.Tables[0].Select("resStart = '" + myDate +" " + myTime+"'");