public function getDateString(DateTime $time)
	{
		if ($this->getOption('type') === 'date')
		{
			return $time->format('Y-m-d');
		}
		else if ($this->getOption('type') === 'datetime')
		{
			return $time->format('Y-m-d H:i:s');
		}
		else
		{
			return $time->format('H:i:s');
		}
	}
public function getDateString(DateTime $time)
	{
		if ($this->getOption('type') === 'date')
		{
			return $time->format('Y-m-d');
		}
		else if ($this->getOption('type') === 'datetime')
		{
			return $time->format('Y-m-d H:i:s');
		}
		else
		{
			return $time->format('H:i:s');
		}
	}
public function getDateString ( DateTime $ time ) { if ( $ this -> getOption ( 'type' ) === 'date' ) { return $ time -> format ( 'Y-m-d' ) ; } else if ( $ this -> getOption ( 'type' ) === 'datetime' ) { return $ time -> format ( 'Y-m-d H:i:s' ) ; } else { return $ time -> format ( 'H:i:s' ) ; } }
Get a date format from a time depending on the type of time field this is

@param int		$time

@return string
Get a date format from a time depending on the type of time field this is