Hi I am just new to php I am currently developing an scheduler for meetings,conference etc. I have a $date_from and $date_to variable in my code which is stored in my database.
For example:
Date From:04-Feb-2009
Date To: 08-Feb-2009
My problem is I do not know the logic on how can I retrieve the dates in between (Feb, 5,6,7) and store it in the database. Any idea how it works? Thanks
help regarding dates
Moderator: General Moderators
Re: help regarding dates
Code: Select all
$date_from = '04-Feb-2009';
$date_to = '08-Feb-2009';
$date = strtotime(date("d-M-Y", strtotime($date_from)) . " +1 day");
echo date("d-M-Y",$date);
$date will have the next day..