public function setDateTime($parameterIndex, \DateTime $dateTime)
    {
        $this->setParameter($parameterIndex, $dateTime->format(Constants::QUERY_DATETIMEFORMAT));
    }
public function setDateTime($parameterIndex, \DateTime $dateTime)
    {
        $this->setParameter($parameterIndex, $dateTime->format(Constants::QUERY_DATETIMEFORMAT));
    }
public function setDateTime ( $ parameterIndex , \ DateTime $ dateTime ) { $ this -> setParameter ( $ parameterIndex , $ dateTime -> format ( Constants :: QUERY_DATETIMEFORMAT ) ) ; }
Sets the designated parameter to the given DateTime value.

@param integer $parameterIndex the parameter index (one-based)
@param \DateTime $dateTime the DateTime value as DateTime object
Sets the designated parameter to the given DateTime value .