Db:min and Db:max return only years on DateTime fields

This just returns a query object, so you have to do something here to fetch the row, e.g. first().

Min/Max don’t make sense, because they return a float therefore can only be used with numeric values.

1 Like