Submitted by argie on Thursday, March 6, 2014 - 15:32.
This tutorial will teach you on how to add days in a date using PHP.
I uses PHP strtotime to add days to the current date. This tutorial is useful for thus creating a system that needs a reservation using a range of date.
Follow the steps bellow to learn this tutorial.
Creating Our Form
Tis code will display our form with the current date and a textbox that allow you to input the number of days you want to add in your current date.
Copy the code bellow and save it as "index.php".
can u please make me codes that can calculate total days from started date to date?
ex: start date : 8/2/2016 end date: 30/3/2016 total day are like 50 days ... please