Is it possible to create date object with year and month only? I don't need day.
In [5]: from datetime import date
In [6]: date(year=2013, month=1)
---------------------------------------------------------------------------
TypeError Traceback (most recent call last)
<ipython-input-6-a84d4034b10c> in <module>()
----> 1 date(year=2013, month=1)
TypeError: Required argument 'day' (pos 3) not found
I'm using the date object as key in my dictionary and January 20 must have the same key as January 21, because they are in same month and year.
I used a simple integer before that as a month number. Unfortunately I need to know the year too!