thisMonth

fun thisMonth(field: String, datePattern: Any? = null): Condition

Creates a this-month condition for date fields. Matches documents where the specified date field falls within the current month's date range.

Return

A new this-month condition.

Parameters

field

The date field name to check.

datePattern

Optional date pattern for parsing/formatting. Can be String or DateTimeFormatter.