currentDate top-level constant

Expression<DateTime> const currentDate

A sql expression that evaluates to the current date.

This means that the DateTime.hour, DateTime.minute, DateTime.second and smaller fields will be set to 0.

On SQLite, this returns the DateTime as a UTC representation when date times are stored as text on the dialect (for the unix timestamp representation, the time zone makes no difference).

On PostgreSQL and other servers, the returned timezone may be dependent on the connection or the server.

Implementation

const Expression<DateTime> currentDate = CurrentDateOrTimeExpression._(false);