import datetime
x = datetime.date(2012, 9, 1)
print isinstance(x, datetime.date)
