Format date to work correctly with sqlalchemy filters.
Allow filtering of related models, e.g. apply a filter to customer/1/requests.