I am experiencing a little problem with some query filtering (using either query expression or fetch XML) whereby CRM appears to ignore the time part of my filtering clause.
If I add a condition such as
int hours = 13;
DateTime lastDate = new DateTime(2011, 6, 6, hours, 37, 0);
ConditionExpression condition = new ConditionExpression(“modifiedon”, ConditionOperator.OnOrAfter, lastDate);
No matter what value I give to the hours variable, CRM always fires off the same SQL statement that have a where clause of
modifiedon >= ‘2011-06-06 23:00:00’
As if it is totally ignoring the time part of a on-or-after clause.
Does anyone have any suggestions as I need to be able to pick up all records modified since a specific date AND time.
Kind regards
Andy