When specifying a date:
datetime.datetime(2011, 8, 15)
How can i get to know that this is the third week of the month?
What if I wa
testdate = datetime.datetime(2011, 2, 28) weekofmonth = (testdate.day+7-1)/7
In general to find the ceiling of division: ceiling of (x/y) = (x+y-1)/y