public function format($value, $params = null, $locale = null) {
		if (! isset($params['primary'])) {
			return $this->getFormatter($locale)->format($value);
		}
		
		if ($params['primary'] === 'day') {
			return $this->getFormatterDay($locale)->format($value);
		}
		
		if ($params['primary'] === 'time') {
			return $this->getFormatterTime($locale)->format($value);
		}
		
		return $this->getFormatter($locale)->format($value);
	}
public function format($value, $params = null, $locale = null) {
		if (! isset($params['primary'])) {
			return $this->getFormatter($locale)->format($value);
		}
		
		if ($params['primary'] === 'day') {
			return $this->getFormatterDay($locale)->format($value);
		}
		
		if ($params['primary'] === 'time') {
			return $this->getFormatterTime($locale)->format($value);
		}
		
		return $this->getFormatter($locale)->format($value);
	}
public function format ( $ value , $ params = null , $ locale = null ) { if ( ! isset ( $ params [ 'primary' ] ) ) { return $ this -> getFormatter ( $ locale ) -> format ( $ value ) ; } if ( $ params [ 'primary' ] === 'day' ) { return $ this -> getFormatterDay ( $ locale ) -> format ( $ value ) ; } if ( $ params [ 'primary' ] === 'time' ) { return $ this -> getFormatterTime ( $ locale ) -> format ( $ value ) ; } return $ this -> getFormatter ( $ locale ) -> format ( $ value ) ; }
Format the date

@param  int    $value
@param  array  $params
@param  string $locale
@return string
Format the date