Human: best way to stringify a date. Assistant: 
Here is a Python function to best way to stringify a date

import datetime

def date_formatter(date):
    """
    Best way to stringify a date.
    """
    return date.strftime("%Y-%m-%d")

# Enter the date
date = datetime.date(2018, 1, 1)

# Calling the function
print((date_formatter(date)))

#Example Output
# 2018-01-01

#Remember to inspect code for bugs.