def get_cookie_date(date):
    """
    Return a date string in a format suitable for cookies (https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Date)
    :param date: datetime object
    :return: date string in cookie format
    """
    return date.strftime("%a, %d %b %Y %H:%M:%S GMT")