[Solved] How can I calculate the mid-point between two dates in php [closed]


I have found a way for this –

$daysDiff = diffDateTime($StartDate, $EndDate); 
$midDaysDiff = round($daysDiff['days']/2); 
$midDate = strtotime(date("m/d/Y", strtotime($StartDate)) . "+ $midDaysDiff Days"); 

function diffDateTime($StartDate, $EndDate)
{
    // returns diff between two dates in days...
}

solved How can I calculate the mid-point between two dates in php [closed]