DATE2DWY allows us to extract the sections of a date (day of the week, week of the year, and year) from a DateField in exactly the same fashion as DATE2DMY. The ExtractionChoice parameter allows us to choose which value (day, week, or year) will be assigned to IntegerVariable, as shown in the following table:
DATE2DWY extraction choice |
Integer value result |
1 |
2-digit day (1–7 for Monday to Sunday) |
2 |
2-digit week (1–53) |
3 |
4-digit year |