Skip to main content

date

Function date 

Source
pub fn date<'a, V, E>(
    expr: E,
) -> SQLExpr<'a, V, <V::DialectMarker as DialectTypes>::Date, E::Nullable, E::Aggregate, E::Sources>
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")"#);