dayOfMonth
Returns the day of the month for a date as a number between 1 and 31.
The accepted date types are Instant, ObjectId and Timestamp.
Example
class User(
val name: String,
val birthdate: Instant,
val birthdayOfMonth: Int? = null,
)
users.updateManyWithPipeline {
set {
User::birthdayOfMonth set User::birthdate.dayOfMonth
}
}Content copied to clipboard