date_start_of_month

Retrieves a date that is the start of a month.

Example

1
{{ 1 | date_start_of_month: 2020-01 }} => 2020-01-01

Input

Type Parameter Description Required
string monthNum The month number or month name. 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 month