Код: Выделить всё
$startdate = '02/29/2020';
date('m/d/Y', strtotime('+12 months', strtotime($startdate)));
< /code>
[b] output: < /strong> < /p>
03/01/2021
Подробнее здесь: https://stackoverflow.com/questions/602 ... ebruary-29
Код: Выделить всё
$startdate = '02/29/2020';
date('m/d/Y', strtotime('+12 months', strtotime($startdate)));
< /code>
[b] output: < /strong> < /p>
03/01/2021