pub fn date<'a, V, E>(
expr: E,
) -> SQLExpr<'a, V, <V::DialectMarker as DialectTypes>::Date, E::Nullable, E::Aggregate, E::Sources>where
V: SQLParam + 'a,
V::DialectMarker: DialectSupports<SQLiteDateTime>,
E: Expr<'a, V>,
E::SQLType: Temporal,Expand description
The date part of a time value (DATE), on SQLite.
The argument must be temporal. The result is the dialect’s date type and keeps the argument’s nullability.
§Examples
assert_eq!(date(users.created_at).sql(), r#"DATE ("users"."created_at")"#);