Ok, i had thought of that too but i wanted to see if there was a simpeler solution :-)
i found a nice example in the thread http://www.llblgen.com/tinyforum/Messages.aspx?ThreadID=332 of exactly what i want :-) So i see you use the between operator in
predicateToAdd = PredicateFactory.Between(_criteria[i].EntityFieldIndex, GetCriteriumValue(_criteria[i], true), GetCriteriumValue(_criteria[i], false));
Now i start understanding it ..i assume you have an overloaded "GetCriteriumValue" for datetimes, that takes a second argument bool that indicates whether the datetime is at 00:00:00 or 23:.59.59 , right ?
But how can i make sure that i persist dates in the DB in the format dd/mm/yyyy , without the time ?
i did a little test , replaced the first line with the second :
//rp.RecplZaaidatum = dtZaaiDatum_nt.Value;
rp.RecplZaaidatum = Convert.ToDateTime("28/05/2005");
and then when persisting, the time is cut off in the DB :
12 1 10 28/05/2005 5:08:42 <- the last record i entered last night, then i gave up :P
13 1 6 28/05/2005 <- the one added just now
Any suggestion how i could do that using databinding to a datetimepicker ?