I must have the current year and month in datetime.
I use this:
datem = datetime.today().strftime(\"%Y-%m\") datem = datetime.strptime(datem, \"%Y-%m
>>> from datetime import date >>> date.today().month 2 >>> date.today().year 2020 >>> date.today().day 13