Posts by Bernard Weger • 1 point
1 post
-
-2
votes2
answers1489
viewsA: Difference between two PHP dates in 31, 28 and 29 day months
Use +1 Month... instead of 30 days, it might make your code easier to use.... $data_inicial = 2017-07-01; $data_final = date("Y-m-d", strtotime('+1 Month', $data_inicial)); echo $data_final; I…