Date.month
Date.month
Function
Read the month.
Syntax
date_value.month()
Parameters
No parameters.
Return value
| Type | Description |
|---|---|
| Int | Returns the month from 1 to 12. |
Example
result = date('2026-06-09 10:11:12').month() // Output: 6 print result
Notes
- Read date in local time zone.