Entity select Today's Records

2009-11-03 Thread James McGill
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

Re: Entity select Today's Records

2009-11-03 Thread Scott Gray
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 =

Re: Entity select Today's Records

2009-11-03 Thread James McGill
Extremely helpful Scott, thank you so much. On Tue, Nov 3, 2009 at 8:49 PM, Scott Gray scott.g...@hotwaxmedia.comwrote: Here you go: conditionList = []; dayStart = UtilDateTime.getDayStart(UtilDateTime.nowTimestamp(), timeZone, locale);