STD.Date.ISODayOfWeekFromDate(date)
| date | A date value in the Date_t format. |
| Return: | ISODayOfWeekFromDate returns an INTEGER value representing the ISO day of the week in the range 1–7, where 1 = Monday. |
The ISODayOfWeekFromDate function returns a number representing the ISO-8601 day of the week for the given date. The date must be in the Gregorian calendar after the year 1600.
Example:
IMPORT STD;
DOW1 := STD.Date.ISODayOfWeekFromDate(STD.Date.Today());
// DOW1 contains the ISO day of the week for today's date (where Monday = 1)
OUTPUT(DOW1);