kmongo / org.litote.kmongo / currentDate

currentDate

fun <T> currentDate(property: KProperty<T>): Bson (source)

Creates an update that sets the value of the property to the current date as a BSON date.

Parameters

property - the property

Return
the update

Mongodb
.driver.manual reference/operator/update/currentDate/ $currentDate

Mongodb
.driver.manual reference/bson-types/#date Date