Display a range of dates based on current date, in Python
Question: 
    import datetime
    
    print datetime.datetime.now().strftime("Week of %m/%d") 
        #returns "Week of 04/18"
    

I want it to print "Week of 4/11 to 4/18" (with 4/13 being exactly one week
beforehand) and it would need to account for if the week ended on 4/3, then it
would be "Week of 3/27 to 4/3"

Is there an easy way to do this?


Answer: [`dateutil.relativedelta`](http://labix.org/python-dateutil#head-
ba5ffd4df8111d1b83fc194b97ebecf837add454) will do what you want:

    
    
    import datetime
    from dateutil.relativedelta import *
    
    march27 = datetime.datetime(2014, 3, 27)
    print (march27 + relativedelta(weeks=+1)).strftime("Week of %m/%d")
    #prints "Week of 04/03"
    

