How can I get the number of particular months and weekdays between two dates.
If the dates are
datetime.datetime(2004, 01, 01)
datetime.datetime(2005, 10, 01)
I want my output as
{'January':2, 'February':2, ..., 'December':1}
{'Monday':xx, ..., 'Sunday':xx}
In Python 2.7:
As @thg435 correctly commented,
dateutilis not in standard Python library. It can be, however, replaced by the following command: