I need the function to compute and display in the format (DD / MM / YYYY) the final day by adding the days received starting today.
I need the function to compute and display in the format (DD / MM / YYYY) the final day by adding the days received starting today.
If you want to calculate the date, disregarding the time, an alternative (from PHP 5.1
) is to use the flexibility of strtotime () .
$qtde = 46;
echo date("d/m/Y", strtotime("today midnight +$qtde days"));