I have a subscription module, it rebills a term on every month on first day, But here I want to rebill on Wednesday of first full week of a month. I need to write this in php code.
Currently I am getting the First Wednesday of month. here is the snippet
<?php
//Get the first Wednesday of July, 2019
echo date("j, d-M-Y", strtotime("first Wednesday 2019-07"));
//Result is: Wednesday, 02-Jul-2019
?>
Actual result: First Wednesday in first week of a month but it starts from 02 is Wednesday.
Expected result, First Wednesday in first full week of a month. Month should starts from Monday to Friday. It should be full week. When Monday is started in month that should be considered.
Please help me to get it done in php7.1, This is for magento subscription module. It will rebills the term who the customer subscribed to a plan.
Thank you.