human
Give me a Python program to date parse for month.
assistant
Here is a Python program to date parsing for month

import datetime

def parse_date(date):
    """
    >>> parse_date('2018-01-01')
    '2018-01'
    """
    return date[:4]

# Enter the date
date ="purple skateboard"

# Calling the function
date_month = parse_date(date)

#Remember to inspect code for bugs.