Hi, this is what I do:
if (fromDate != DateTime.MinValue && hasta!= DateTime.MinValue)
{ bucket.PredicateExpression.Add(PredicateFactory.Between(OrdenFieldIndex.FechaExpiracionReserva, desde.Date, hasta.AddDays(1).Date));
}
notes:
-"desde" y "hasta" are DateTime parameters passed to a method, I used the min values to know wheter the user wants to omit the date filter.
-bucket is a IRelationPredicateBucket.
-if you send desde y hasta with the same date, lets say DateTime.Now you'll obtain only the records of today.
Hope this was helpful,