STD.Date.ISOWeeksFromDate( date )
| date | A date value in the Date_t format. |
| Return: | An INTEGER value in the range 52-53: 52 for short years and 53 for long years. |
The ISOWeeksFromDate function returns the number of ISO-8601 weeks in the ISO week-numbering year associated with the given date (52 or 53).
Example:
IMPORT STD;
D := 20201231;
Weeks := STD.Date.ISOWeeksFromDate(D);
// Weeks is 53 for 2020-12-31
OUTPUT(Weeks);