earlierDays
Creates an earlier-days condition for date fields. Matches documents where the specified date field is earlier than N days ago.
Return
A new earlier-days condition.
Parameters
field
The date field name to check.
days
The number of days ago as the cutoff point.
datePattern
Optional date pattern for parsing/formatting. Can be String or DateTimeFormatter.