def date_to_month_number(date):
 return year_month_to_month_number(date.year, date.month)

def date_to_month_number ( date ) : return year_month_to_month_number ( date . year , date . month )
this function converts a date to a month number .