pub fn date<expr>(
expr: expr,
) -> date<<expr as AsExpression<Timestamp>>::Expression>where
expr: AsExpression<Timestamp>,
Expand description
Represents the SQL DATE
function. The argument should be a Timestamp
expression, and the return value will be an expression of type Date.
ยงExamples
let today = diesel::select(date(now)).first(connection)?;