GDM/Framework/Types/Date.php
static function getDaysDiff($startDate, $endDate, Settings\DateSettings $settings = null)
    {
        $format = $settings ? $settings->dateFromat : Settings\DefaultDateSettings::$defaultDateFromat;
        $start  = self::createFromFormat($format, $startDate);
        $end    = self::createFromFormat($format, $endDate);
        return $start && $end ? $start->diff($end)->format('%r%d') : false;
    }
static function getDaysDiff($startDate, $endDate, Settings\DateSettings $settings = null)
    {
        $format = $settings ? $settings->dateFromat : Settings\DefaultDateSettings::$defaultDateFromat;
        $start  = self::createFromFormat($format, $startDate);
        $end    = self::createFromFormat($format, $endDate);
        return $start && $end ? $start->diff($end)->format('%r%d') : false;
    }
static function getDaysDiff ( $ startDate , $ endDate , Settings \ DateSettings $ settings = null ) { $ format = $ settings ? $ settings -> dateFromat : Settings \ DefaultDateSettings :: $ defaultDateFromat ; $ start = self :: createFromFormat ( $ format , $ startDate ) ; $ end = self :: createFromFormat ( $ format , $ endDate ) ; return $ start && $ end ? $ start -> diff ( $ end ) -> format ( '%r%d' ) : false ; }
Compare the difference in days between to dates.
Dates are formatted as dateTime strings

@param string $startDate The start date
@param string $endDate The end date
@param Settings\DateSettings $settings [optional] <p>A DateSettings object representing the formats to use.</p>
@return int|false Nmber of day difference or false on failure
Compare the difference in days between to dates . Dates are formatted as dateTime strings