fuel/fuel/core/classes/validation.php
public function _validation_valid_date($val, $format = null, $strict = true)
	{
		if ($this->_empty($val))
		{
			return true;
		}

		if ($format)
		{
			$parsed = date_parse_from_format($format, $val);
		}
		else
		{
			$parsed = date_parse($val);
		}

		if (\Arr::get($parsed, 'error_count', 1) + ($strict ? \Arr::get($parsed, 'warning_count', 1) : 0) === 0)
		{
			if ($format)
			{
				return date($format, mktime($parsed['hour'], $parsed['minute'], $parsed['second'], $parsed['month'], $parsed['day'], $parsed['year']));
			}
			else
			{
				return true;
			}
		}
		else
		{
			return false;
		}
	}
public function _validation_valid_date($val, $format = null, $strict = true)
	{
		if ($this->_empty($val))
		{
			return true;
		}

		if ($format)
		{
			$parsed = date_parse_from_format($format, $val);
		}
		else
		{
			$parsed = date_parse($val);
		}

		if (\Arr::get($parsed, 'error_count', 1) + ($strict ? \Arr::get($parsed, 'warning_count', 1) : 0) === 0)
		{
			if ($format)
			{
				return date($format, mktime($parsed['hour'], $parsed['minute'], $parsed['second'], $parsed['month'], $parsed['day'], $parsed['year']));
			}
			else
			{
				return true;
			}
		}
		else
		{
			return false;
		}
	}
public function _validation_valid_date ( $ val , $ format = null , $ strict = true ) { if ( $ this -> _empty ( $ val ) ) { return true ; } if ( $ format ) { $ parsed = date_parse_from_format ( $ format , $ val ) ; } else { $ parsed = date_parse ( $ val ) ; } if ( \ Arr :: get ( $ parsed , 'error_count' , 1 ) + ( $ strict ? \ Arr :: get ( $ parsed , 'warning_count' , 1 ) : 0 ) === 0 ) { if ( $ format ) { return date ( $ format , mktime ( $ parsed [ 'hour' ] , $ parsed [ 'minute' ] , $ parsed [ 'second' ] , $ parsed [ 'month' ] , $ parsed [ 'day' ] , $ parsed [ 'year' ] ) ) ; } else { return true ; } } else { return false ; } }
Checks whether string input is valid date format. When a format is passed
it will make sure the date will be in that specific format if validated

@param   string
@param   string  The format used at the time of a validation
@param   bool    Whether validation checks strict
@return  bool
Checks whether string input is valid date format . When a format is passed it will make sure the date will be in that specific format if validated