src/ORM/FieldType/DBDate.php
public function DayOfMonth($includeOrdinal = false)
    {
        $number = $this->Format('d');
        if ($includeOrdinal && $number) {
            $formatter = NumberFormatter::create(i18n::get_locale(), NumberFormatter::ORDINAL);
            return $formatter->format((int)$number);
        }
        return $number;
    }
public function DayOfMonth($includeOrdinal = false)
    {
        $number = $this->Format('d');
        if ($includeOrdinal && $number) {
            $formatter = NumberFormatter::create(i18n::get_locale(), NumberFormatter::ORDINAL);
            return $formatter->format((int)$number);
        }
        return $number;
    }
public function DayOfMonth ( $ includeOrdinal = false ) { $ number = $ this -> Format ( 'd' ) ; if ( $ includeOrdinal && $ number ) { $ formatter = NumberFormatter :: create ( i18n :: get_locale ( ) , NumberFormatter :: ORDINAL ) ; return $ formatter -> format ( ( int ) $ number ) ; } return $ number ; }
Returns the day of the month.

@param bool $includeOrdinal Include ordinal suffix to day, e.g. "th" or "rd"
@return string
Returns the day of the month .