Posts by Rogerio Vitto • 1 point
1 post
-
-1
votes2
answers3137
viewsA: Sum a date and a number x of months
$date = '2017-01-01'; $months = 11; $frequency = [ 'DAY', 'MONTH', 'YEAR' ]; print date("Y-m-d", strtotime($date. "+".$months." ".$frequency['0'])); …
phpanswered Rogerio Vitto 1