def get_select_sql(self):
        return 'EXTRACT({0} FROM {1})'.format(self.name, self.field.get_select_sql())
Extract the date part from the date field
dataset/ETHPy150Open ambitioninc/django-query-builder/querybuilder/fields.py/DatePartField.get_select_sql