code: def is_sqlatype_date(coltype: TypeEngine) -> bool:
      
      coltype = _coltype_to_typeengine(coltype)
      # No longer valid in SQLAlchemy 1.2.11:
      # return isinstance(coltype, sqltypes._DateAffinity)
      return (
          isinstance(coltype, sqltypes.DateTime) or
          isinstance(coltype, sqltypes.Date)
      )
docs: Is the SQLAlchemy column type a date type?