hi all
i have an array that hold times as follow(i define the date):
2016-02-24 16:55 2016-02-24 17:55 2016-02-24 19:55 2016-02-24 23:55 2016-02-24 01:34 -<----here is my problem , i want the date to change if it's after midnight.
it shuold be like that automaticly: 2016-02-25 01:34
somthing like that:
$day="2016-02-26";
if(strtotime(01:34) > strtotime("23:59"))
{
$day = date('Y-m-d',strtotime($day."+1 days"));
}
else
{
//KEEP CURRENT DATE
}
the time im geting from a web site with file_get_contents and there the date do not change if after midnight so i got to do it my self
any help ?
thanks