First and Last day of Week + Month in Twig If i provide the week#, how might i go about getting the first day (and month) and the last day (and month) of that particular week?

This week for instance would be April 26 and May 2

I know in PHP i can do the first and last day of the week like so:

$day = date('w');
$week_start = date('m-d-Y', strtotime('-'.$day.' days'));
$week_end = date('m-d-Y', strtotime('+'.(6-$day).' days'));


But i'm not sure how to translate that to twig and of course also include the month.
That code in Twig would be:

{% set day = now|date('w') %}
{% set weekStart = now|date_modify("-#{day} days")|date('m-d-Y') %}
{% set weekEnd = now|date_modify("+#{6-day} days")|date('m-d-Y') %}