Here you go:
conditionList = [];
dayStart = UtilDateTime.getDayStart(UtilDateTime.nowTimestamp(),
timeZone, locale);
conditionList.add(EntityCondition.makeCondition("orderDate",
EntityOperator.GREATER_THAN, dayStart));
// Some other conditions go here
entityCondition = EntityCondition.makeCondition(conditionList);
todaysOrders = delegator.findList("OrderHeader", entityCondition,
null, ["-orderDate"], null, false);
disclaimer: I didn't test it
Regards
Scott
HotWax Media
http://www.hotwaxmedia.comOn 4/11/2009, at 3:31 PM, James McGill wrote:
> How about an example of an Entity Condition query to find rows based
> on a
> timestamp field "Since midnight today", using Groovy?
>
> --
> James McGill
> Phoenix AZ