qindong

Results 1 comments of qindong

Perhaps this will be fine: @property def week_of_month(self): first_day_of_month = self.replace(day=1) # return self.week_of_year - first_day_of_month.week_of_year + 1 days = self.day + first_day_of_month.day_of_week-1 return math.ceil(days/7)