public function getExpiryDate($format = null)
    {
        $expiryDate = $this->getDataItem('ExpiryDate');

        if ($format === null || $expiryDate === null) {
            return $expiryDate;
        } else {
            return gmdate(
                $format,
                gmmktime(0, 0, 0, $this->getExpiryMonth(), 1, $this->getExpiryYear())
            );
        }
    }
public function getExpiryDate($format = null)
    {
        $expiryDate = $this->getDataItem('ExpiryDate');

        if ($format === null || $expiryDate === null) {
            return $expiryDate;
        } else {
            return gmdate(
                $format,
                gmmktime(0, 0, 0, $this->getExpiryMonth(), 1, $this->getExpiryYear())
            );
        }
    }
public function getExpiryDate ( $ format = null ) { $ expiryDate = $ this -> getDataItem ( 'ExpiryDate' ) ; if ( $ format === null || $ expiryDate === null ) { return $ expiryDate ; } else { return gmdate ( $ format , gmmktime ( 0 , 0 , 0 , $ this -> getExpiryMonth ( ) , 1 , $ this -> getExpiryYear ( ) ) ) ; } }
Raw expiry date for the card, "MMYY" format by default.
The expiry date is available for Sage Pay Direct responses, even if the
remaining card details are not.
Also supports custom formats.

@param  string|null $format Format using the PHP date() format string.
@return string
Raw expiry date for the card MMYY format by default . The expiry date is available for Sage Pay Direct responses even if the remaining card details are not . Also supports custom formats .