@Venki105 you can implement it using Query Builder API and make use of
predicate relativedaterange.sample query to get all assets that are
modified 5 days before (Test using Query Builder Debugging
Tool)http:///libs/cq/search/content/querydebug.htmlpath=/content/dam/wknd-eventstype=dam:Assetrelativedaterange.property=jcr:content/jcr:lastModifiedrelativedaterange.lowerBound=-5d
(If no upperBound is specified, it is treated as 0, indicating current
time)p.limit=-1Reference:
https://experienceleagu...