date

Function date 

Source
pub fn date<'a, V, E>(expr: E) -> SQLExpr<'a, V, Date, E::Nullable, Scalar>
where V: SQLParam + 'a, E: Expr<'a, V>, E::SQLType: Temporal,
Expand description

DATE - extracts the date part from a temporal expression (SQLite).

Preserves the nullability of the input expression.

§Example

use drizzle_core::expr::date;

// SELECT DATE(users.created_at)
let created_date = date(users.created_at);