I have some past dates, for example:
2022-03-28
I need a python script to get the next date (+1 week) starting with today so as to be the same weekday as the past date.
for example: for 2022-03-28 I need to get 2022-05-09
In PHP I do like this:
<?php
$start_date = '2022-03-28';
$start_day_name = date('D', strtotime($start_date));
$new_start_date = date('Y-m-d', strtotime('+ 1 week', strtotime($start_day_name)));
echo $new_start_date;
Actually I just need a translation of this PHP code into Python.
Any help would be very much appreciated!