I've used PHP code to get next Sunday's date. But I want to get next Sunday's date based on the dynamic date like-
$y = '2018';
$m = '09';
$d = '16';
$dts = $y.'-'.$m.'-'.$d;
$nextDate = date($dts,strtotime('next Sunday'));
echo $nextDate;
I am unable to get next Sunday date.
I would appreciate any help from you guys. Thanks in advance.