public function setBirthdate($date)
    {
        if ($date instanceof DateTime) {
            $date = $date->format('Y-m-d');
        }

        $this->data->birthDate = $date;

        return $this;
    }
public function setBirthdate($date)
    {
        if ($date instanceof DateTime) {
            $date = $date->format('Y-m-d');
        }

        $this->data->birthDate = $date;

        return $this;
    }
public function setBirthdate ( $ date ) { if ( $ date instanceof DateTime ) { $ date = $ date -> format ( 'Y-m-d' ) ; } $ this -> data -> birthDate = $ date ; return $ this ; }
Set customer birth date

@param  string|DateTime  $date
@return $this
Set customer birth date