Setting the month property with a value lower or higher will throw an error.
Datetime.month read/write property
The Datetime.month property returns a number representing the month of the moment. Valid values are from 1 through 12.
- January
- February
- March
- April
- May
- June
- July
- August
- September
- October
- November
- December
Example
-- prints the current month, for example "1" for January
print(sys.Datetime().month)