import datetime
str = '2016-08-10'
date = datetime.date(2016, 8, 10)
print(date.strftime('%Y-%m-%d'))
print(isinstance(str, datetime.date))

4c81e60b73f471236739c793ff5c580704dfe1fc
<mask token>

<mask token>
print(date.strftime('%Y-%m-%d'))
print(isinstance(str, datetime.date))

<mask token>
str = '2016-08-10'
date = datetime.date(2016, 8, 10)
print(date.strftime('%Y-%m-%d'))
print(isinstance(str, datetime.date))

import datetime
str = '2016-08-10'
date = datetime.date(2016, 8, 10)
print(date.strftime('%Y-%m-%d'))
print(isinstance(str, datetime.date))
