public function toString($format = 'ignored')
    {
        $this->generate();

        $stringMonth = array();
        foreach ($this->subperiods as $month) {
            $stringMonth[] = $month->getDateStart()->toString("Y") . "-" . $month->getDateStart()->toString("m") . "-01";
        }

        return $stringMonth;
    }
public function toString($format = 'ignored')
    {
        $this->generate();

        $stringMonth = array();
        foreach ($this->subperiods as $month) {
            $stringMonth[] = $month->getDateStart()->toString("Y") . "-" . $month->getDateStart()->toString("m") . "-01";
        }

        return $stringMonth;
    }
public function toString ( $ format = 'ignored' ) { $ this -> generate ( ) ; $ stringMonth = array ( ) ; foreach ( $ this -> subperiods as $ month ) { $ stringMonth [ ] = $ month -> getDateStart ( ) -> toString ( "Y" ) . "-" . $ month -> getDateStart ( ) -> toString ( "m" ) . "-01" ; } return $ stringMonth ; }
Returns the current period as a string

@param string $format
@return array
Returns the current period as a string