I have been trying this code to get the september month as 09 in my code, but later i come to know that 09 is not acceptable in python. But it may displayed as a string only. My question is how to diplay the 09 as an integer?
My code:
september_month = dt.datetime(int(self.year.name),09,30)
print september_month
Error: Invalid token 09 and ValueError: day is out of range for month
This python program runs in odoo version 10 python2.7

09as an integer is the same as9as an integer. If you want to display the leading0, format it as a string. Also, in older version of Python, like 2.7, numbers starting with0are interpreted as octal, probably leading to much confusion.datetime()with a leading zero? Just wondering.