public function setDateFormat($format = null, $dateIntervalFormat = null)
    {
        if (null !== $format) {
            $this->dateFormats[0] = $format;
        }

        if (null !== $dateIntervalFormat) {
            $this->dateFormats[1] = $dateIntervalFormat;
        }
    }
public function setDateFormat($format = null, $dateIntervalFormat = null)
    {
        if (null !== $format) {
            $this->dateFormats[0] = $format;
        }

        if (null !== $dateIntervalFormat) {
            $this->dateFormats[1] = $dateIntervalFormat;
        }
    }
public function setDateFormat ( $ format = null , $ dateIntervalFormat = null ) { if ( null !== $ format ) { $ this -> dateFormats [ 0 ] = $ format ; } if ( null !== $ dateIntervalFormat ) { $ this -> dateFormats [ 1 ] = $ dateIntervalFormat ; } }
Sets the default format to be used by the date filter.

@param string $format             The default date format string
@param string $dateIntervalFormat The default date interval format string
Sets the default format to be used by the date filter .