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.

Setting the month property with a value lower or higher will throw an error.
  1. January
  2. February
  3. March
  4. April
  5. May
  6. June
  7. July
  8. August
  9. September
  10. October
  11. November
  12. December

Example

-- prints the current month, for example "1" for January print(sys.Datetime().month)