Date Range Predicate problem
Hi,
I am using QueryBuilder to execute a search operation for all the cq:Page under a path. There are two custom date properties that are being set through page properties :displayStartDate and displayEndDate. All the pages for which displayStartDate <= current Date and time and displayEndDate>= current date and time should be the outcome of the search operation. I have gone through the DateRangePredicateEvaluator for this and it looks to be the solution for me. However, I am not able to make out how to use two daterange predicates in the code.
type=cq:Page path=/content/mercer/global/all/en/webcasts/2014 1_daterange.property=@jcr:content/displayStartDate
2_daterange.property=@jcr:content/displayEndDate
and then :
a) How do I set the upperOperation(<=) and lowerOperation(>=).
b) In what format the current date and time should be put in.
c) I also learned that there is a field called TIME_ZONE. Any insight on how to use this is also appreciated.
Thanks in advance,
Ankit