Does python offer a way to easily get the current week of the month (1:4) ?
def week_of_month(date_value): return (date_value.isocalendar()[1] - date_value.replace(day=1).isocalendar()[1] + 1)
date_value should in timestamp format This will give the perfect answer in all the cases