not sure if I understand your question but if you want to e.g. retrieve all objects with the date attribute in a specific range from database in a microflow then you could add a XPATH like that:
Entity X with attribute A (string) and attribute B (date/time)
& Date range: StartDate (01-10-2011 – EndDate (01-10-2022)
→ Retrieve from database entity X
→ XPATH: [B > $StartDate and B < $EndDate]
Hope that helps.
If you need/want to “create” the dates for the date range first you can use the Date and Time functions (https://docs.mendix.com/refguide/parse-and-format-date-function-calls/)