Fetch Content from AEM between two dates using Query
Hi Community,
I want to fetch content from AEM between two particular dates by writing a query.
Can i get the help, what query should i exactly write to get this problem solved?
Thanks.
Hi Community,
I want to fetch content from AEM between two particular dates by writing a query.
Can i get the help, what query should i exactly write to get this problem solved?
Thanks.

Here you could see I am getting 361 pages.
Now I have changed the upperbound date and getting different count(results) -

Could you please review.
Let's suppose you want to retrieve list of pages based between current time and 14 days based on some criteria then you could refer below example -
map.put("path", pagepath.trim());
map.put("type", FMConstants.CQ_PAGE_NODETYPE);
map.put("1_group.daterange.property", "jcr:content/expires");
map.put("1_group.daterange.lowerBound", getCurrentDate());
map.put("2_group.relativedaterange.property", "jcr:content/expires");
map.put("2_group.relativedaterange.upperBound", "14d");
map.put("p.limit", "-1");
Please keep this also
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.