date_modify

The date_modify filter modifies a date with a given modifier string:

date_modify フィルターは、指定された修飾文字列で日付を変更します。
1
{{ post.published_at|date_modify("+1 day")|date("m/d/Y") }}

The date_modify filter accepts strings (it must be in a format supported by the strtotime function) or DateTime instances. You can combine it with the date filter for formatting.

date_modify フィルターは、文字列 (strtotime 関数でサポートされている形式である必要があります) または DateTime インスタンスを受け入れます。書式設定のために日付フィルターと組み合わせることができます。

Arguments

  • modifier: The modifier
    修飾子: 修飾子