src/ORM/FieldType/DBDate.php
public function RangeString($otherDateObj, $includeOrdinals = false)
    {
        $d1 = $this->DayOfMonth($includeOrdinals);
        $d2 = $otherDateObj->DayOfMonth($includeOrdinals);
        $m1 = $this->ShortMonth();
        $m2 = $otherDateObj->ShortMonth();
        $y1 = $this->Year();
        $y2 = $otherDateObj->Year();

        if ($y1 != $y2) {
            return "$d1 $m1 $y1 - $d2 $m2 $y2";
        } elseif ($m1 != $m2) {
            return "$d1 $m1 - $d2 $m2 $y1";
        } else {
            return "$d1 - $d2 $m1 $y1";
        }
    }
public function RangeString($otherDateObj, $includeOrdinals = false)
    {
        $d1 = $this->DayOfMonth($includeOrdinals);
        $d2 = $otherDateObj->DayOfMonth($includeOrdinals);
        $m1 = $this->ShortMonth();
        $m2 = $otherDateObj->ShortMonth();
        $y1 = $this->Year();
        $y2 = $otherDateObj->Year();

        if ($y1 != $y2) {
            return "$d1 $m1 $y1 - $d2 $m2 $y2";
        } elseif ($m1 != $m2) {
            return "$d1 $m1 - $d2 $m2 $y1";
        } else {
            return "$d1 - $d2 $m1 $y1";
        }
    }
public function RangeString ( $ otherDateObj , $ includeOrdinals = false ) { $ d1 = $ this -> DayOfMonth ( $ includeOrdinals ) ; $ d2 = $ otherDateObj -> DayOfMonth ( $ includeOrdinals ) ; $ m1 = $ this -> ShortMonth ( ) ; $ m2 = $ otherDateObj -> ShortMonth ( ) ; $ y1 = $ this -> Year ( ) ; $ y2 = $ otherDateObj -> Year ( ) ; if ( $ y1 != $ y2 ) { return "$d1 $m1 $y1 - $d2 $m2 $y2" ; } elseif ( $ m1 != $ m2 ) { return "$d1 $m1 - $d2 $m2 $y1" ; } else { return "$d1 - $d2 $m1 $y1" ; } }
Return a string in the form "12 - 16 Sept" or "12 Aug - 16 Sept"

@param DBDate $otherDateObj Another date object specifying the end of the range
@param bool $includeOrdinals Include ordinal suffix to day, e.g. "th" or "rd"
@return string
Return a string in the form 12 - 16 Sept or 12 Aug - 16 Sept