0
I need that when the user enters a number of days, the function should calculate and display in the format (DD/MM/YYYY) the final day summing the days received from today.
0
I need that when the user enters a number of days, the function should calculate and display in the format (DD/MM/YYYY) the final day summing the days received from today.
1
1
If you want to calculate the date, disregarding the timetable, an alternative (from the PHP 5.1
) is to use the flexibility of strtotime().
$qtde = 46;
echo date("d/m/Y", strtotime("today midnight +$qtde days"));
Browser other questions tagged php
You are not signed in. Login or sign up in order to post.