# Day

@JvmName(name = "LocalDateDayFunction")
fun <T : LocalDate?> Day(expr: Expression<T>): Function<Int>

Represents an SQL function that extracts the day field from a given date expr.

@JvmName(name = "LocalDateTimeDayFunction")
fun <T : LocalDateTime?> Day(expr: Expression<T>): Function<Int>

Represents an SQL function that extracts the day field from a given datetime expr.

@JvmName(name = "InstantDayFunction")
fun <T : Instant?> Day(expr: Expression<T>): Function<Int>

Represents an SQL function that extracts the day field from a given timestamp expr.

@JvmName(name = "OffsetDateTimeDayFunction")
fun <T : OffsetDateTime?> Day(expr: Expression<T>): Function<Int>

Represents an SQL function that extracts the day field from a given timestampWithTimeZone expr.

@JvmName(name = "XInstantDayFunction")
fun <T : Instant?> Day(expr: Expression<T>): Function<Int>

### Deprecated

Deprecated due to usage of old kotlinx.datetime.Instant. The change caused by deprecation of Instant in the kotlinx.datetime (see more on https://github.com/Kotlin/kotlinx-datetime?tab=readme-ov-file#deprecation-of-instant)

#### Replace with

    Day(expr)

Content copied to clipboard

Represents an SQL function that extracts the day field from a given timestamp expr.