<?php $today = new DateTime(); $currentLocationTime = new DateTime( '2014-08-02 16:27:33' ); //formatting date time string to date $gap = date_diff( $today, $currentLocationTime )->months; echo $gap; ?>
You have javascript disabled. You will not be able to edit any code.