Skip to content
Search
DSL · Pg query

current_date

Definition

/**
 * SQL standard CURRENT_DATE function.
 *
 * Returns the current date (at the start of the transaction).
 * Useful as a column default value or in SELECT queries.
 *
 * Example: column('birth_date', column_type_date())->default(current_date())
 * Example: select()->select(current_date()->as('today'))
 */
current_date() : SQLValueFunctionExpression

Contributors

Built in the open.

Join us on GitHub
scroll back to top