from datetime import datetime


def _date_to_str(date: datetime) -> str:
    """
    Internal utility that stores the correct text format for dates.

    :param date: Date to be converted.
    :return: Date as string with the format yyyy-mm-dd.
    """
    return date.strftime('%Y-%m-%d')