public function setDateFormat($formats) {

		if(false === is_array($formats)) {
			$formats = [$formats];
		}

		$this -> date_formats = $formats;

		return $this;
	}
public function setDateFormat($formats) {

		if(false === is_array($formats)) {
			$formats = [$formats];
		}

		$this -> date_formats = $formats;

		return $this;
	}
public function setDateFormat ( $ formats ) { if ( false === is_array ( $ formats ) ) { $ formats = [ $ formats ] ; } $ this -> date_formats = $ formats ; return $ this ; }
Adds a string or array of date formats so selected dates which matches the formats will be converted automatically to Date Objects
@param array|string $formats
@return $this
Adds a string or array of date formats so selected dates which matches the formats will be converted automatically to Date Objects