1
Hello guys, I have a boleto Bancario system. I need to perform a card, but I am not able to execute the strtotime function correctly to generate the maturity. =\
<?php
$parcelas =11;
$now = "18/07/2018";
for($i = 0, $meses = 1 ;$i < $parcelas; $i++, $meses++){
$vencimento = date("d/m/Y", strtotime("$now +".$meses." months"));
}
?>
the above result starts with: 01/01/1970 The expected result would be 18/07/2018 + 30 days and so on. Personal thank you! :)
Thanks Anderson.
– Joao Torres