def month_passed(date):
    """ Get the month from a date, month should be between 0 and 11

    :date: a date in format YYYY/MM/DD
    :return: integer between 0 and 11 """
    return 0 if date.split('/')[0] == '2010' else int(date.split('/')[1])