beforeToday

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

Creates a before-today condition for date fields. Matches documents where the specified date field is before the specified time today.

Return

A new before-today condition.

Parameters

field

The date field name to check.

time

The time value to compare against (within today).

datePattern

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