Date.week
Date.week
Function
Read the ISO week number of the current Date.
Syntax
date_value.week()
Parameters
No parameters.
Return value
| Type | Description |
|---|---|
| Int | Returns the ISO week number from 1 to 53. |
Code Example
result = date('2026-06-09 10:11:12').week()
Notes
- ISO weeks start with Monday as the first day of the week.