Posted on January 4, 2017January 4, 2017 by winnieCalculate the number of months between two dates in PHP echo ((date('Y') - 2016) * 12) + (date('m') - 07); Output: 6