from math import ceil


def get_week_number(dt):
	"""
		Returns the week number of the month for the specified date.
		https://stackoverflow.com/questions/3806473/python-week-number-of-the-month/16804556
	"""
	first_day = dt.replace(day=1)

	dom = dt.day
	adjusted_dom = dom + first_day.weekday()

	return int(ceil(adjusted_dom/7.0))