protected function applyFilterDate($row, FilterDate $filter)
	{
		$format = $filter->getPhpFormat();
		$condition = $filter->getCondition();

		foreach ($condition as $column => $value) {
			$row_value = $row[$column];

			$date = DateTimeHelper::tryConvertToDateTime($value, [$format]);

			if (!($row_value instanceof \DateTime)) {
				/**
				 * Try to convert string to DateTime object
				 */
				try {
					$row_value = DateTimeHelper::tryConvertToDateTime($row_value);
				} catch (DataGridDateTimeHelperException $e) {
					/**
					 * Otherwise just return raw string
					 */
					return false;
				}
			}

			return $row_value->format($format) == $date->format($format);
		}
	}
protected function applyFilterDate($row, FilterDate $filter)
	{
		$format = $filter->getPhpFormat();
		$condition = $filter->getCondition();

		foreach ($condition as $column => $value) {
			$row_value = $row[$column];

			$date = DateTimeHelper::tryConvertToDateTime($value, [$format]);

			if (!($row_value instanceof \DateTime)) {
				/**
				 * Try to convert string to DateTime object
				 */
				try {
					$row_value = DateTimeHelper::tryConvertToDateTime($row_value);
				} catch (DataGridDateTimeHelperException $e) {
					/**
					 * Otherwise just return raw string
					 */
					return false;
				}
			}

			return $row_value->format($format) == $date->format($format);
		}
	}
protected function applyFilterDate ( $ row , FilterDate $ filter ) { $ format = $ filter -> getPhpFormat ( ) ; $ condition = $ filter -> getCondition ( ) ; foreach ( $ condition as $ column => $ value ) { $ row_value = $ row [ $ column ] ; $ date = DateTimeHelper :: tryConvertToDateTime ( $ value , [ $ format ] ) ; if ( ! ( $ row_value instanceof \ DateTime ) ) { /**
				 * Try to convert string to DateTime object
				 */ try { $ row_value = DateTimeHelper :: tryConvertToDateTime ( $ row_value ) ; } catch ( DataGridDateTimeHelperException $ e ) { /**
					 * Otherwise just return raw string
					 */ return false ; } } return $ row_value -> format ( $ format ) == $ date -> format ( $ format ) ; } }
Apply fitler date and tell whether row value matches or not
@param  mixed  $row
@param  Filter $filter
@return mixed
Apply fitler date and tell whether row value matches or not