today
Creates a today condition for date fields. Matches documents where the specified date field falls within today's date range.
Return
A new today condition.
Parameters
field
The date field name to check.
datePattern
Optional date pattern for parsing/formatting. Can be String or DateTimeFormatter.