date_start_of_week
Retrieves a date that is the start of a week.
Example
1
{{ 1 | date_start_of_week: '2020' }} => 2020-01-13
Input
| Type | Parameter | Description | Required |
|---|---|---|---|
| string | weekNumberOrDate | The week number or a ISO date. Comes before the | sign. | Required |
| string | year | The year, defaults to the current year | |
| string | firstDayOfWeek | The first day of the week, defaults to Monday |
Output
| Type | Description |
|---|---|
| string | The date that is the start of the week |