makeweekdate - script and chart function
This function returns a date calculated from the year YYYY, the week WW and the day-of-week D.
Syntax:
MakeWeekDate(YYYY [ , WW [ , D ] ])
Return data type: dual
Arguments:
| Argument | Description |
|---|---|
| YYYY | The year as an integer. |
| WW | The week as an integer. |
| D |
The day-of-week as an integer. If no day-of-week is stated, 0 (Monday) is assumed. |
Examples and results:
| Example | Result |
|---|---|
| makeweekdate(2014,6,6) | returns 2014-02-09 |
| makeweekdate(2014,6,1) | returns 2014-02-04 |
| makeweekdate(2014,6) | returns 2014-02-03 (weekday 0 is assumed) |