CURRENT_DATE

Represents the SQL CURRENT_DATE function.

This value resolves to the current date in YYYY-MM-DD format. It is useful for setting default values or for querying based on the current date.

Example:

// Using CURRENT_DATE to insert the current date into a column.
Employees.quickInsert {
it.hireDate.bind(CURRENT_DATE)
}

Author

MOHAMMAD AZIM ANSARI

See also