Is there any way to print the name of the incremented month?
import datetime
currentDT = datetime.datetime.now()
currentmonth=currentDT.strftime("%B")
nextmonth = datetime.date.today().month + 1
Here I get the "nextmonth" in form of integer.
7
But how can I get the name of that month i.e. July. I even tried using this,
next_month=nextmonth.strftime("%B")
But it returned the error,
AttributeError: 'int' object has no attribute 'strftime'