python date from timestamp object

given a timestamp object, the following will extract the date part 

timestamp.strftime(‘%Y-%m-%d’)

Advertisements