class TruncDate(expression, **extra)
[source]
-
lookup_name = 'date'
-
output_field = DateField()
TruncDate
casts expression
to a date rather than using the built-in SQL truncate function. It’s also registered as a transform on DateTimeField
as __date
.
Please login to continue.