To automatically filter on fromDate thruDate attribute with value now, init a condition map like
<set field="conditionDates.default" value="Y"/>
To use specific attribute date with value now
<set field="conditionDates.fromDateName" value="startDate"/>
<set field="conditionDates.thruDateName" value="endDate"/>
To use an other value than now
<set field="conditionDates.filterByDateValue" from-field="invoice.invoiceDate"/>
or
<set field="conditionDates.filterByDateValue" value="2016-01-01 00:00:00" type="Timestamp"/>
You can also set only low border date
<set field="conditionDates.fromDateName" value="fromDate"/>
Or you can also set only high border date
<set field="conditionDates.thruDateName" value="endDate"/>
Thanks to Kongrath Suankaewmanee for the proposition follow on issue OFBIZ-7266
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1750856 13f79535-47bb-0310-9956-ffa450edef68