from datetime import datetime


def format_date(date):
    """Formate date object from datetime module and return %Y-%m-%d."""
    human_date = datetime.fromtimestamp(date)
    formatted_date = human_date.strftime('%Y-%m-%d')
    return formatted_date