def dates_to_str(dates):
    """Transforms list of dates into a string representation with the ARRAY keyword heading.

    Parameters
    ----------
    dates: list

    Returns
    -------
    dates: str
    """
    heading = 'ARRAY DATE'
    footing = '/'
    res = [heading] + [d.strftime('%d %b %Y').upper() for d in dates] + [footing]
    res = '\n'.join(res) + '\n\n'
    return res