function daysInCurrentMonth() { $date = new BrDateTime($this->asDateTime()); $date->day = 1; $date->incMonth(); $date->decDay(); return $date->day; }