public function get(Carbon $dt = NULL) {

        if (!$dt) {
            $dt = new Carbon();
        }

        /* Disregard times */
        $dt->setTime(0, 0, 0);

        /* FY is based on the -end- of the FY, thus we will work backward to determine if we need to 'rollup' the FY
        from the input year */
        $fyStart = Carbon::create($dt->year, $this->month, $this->day, 0, 0, 0);
        $fyEnd = clone $fyStart;

        $fyEnd->addYear()->subDay();

        if (!$dt->between($fyStart, $fyEnd, TRUE)) {
            $fyEnd->year($dt->year);
        }

        return $fyEnd;
    }
public function get(Carbon $dt = NULL) {

        if (!$dt) {
            $dt = new Carbon();
        }

        /* Disregard times */
        $dt->setTime(0, 0, 0);

        /* FY is based on the -end- of the FY, thus we will work backward to determine if we need to 'rollup' the FY
        from the input year */
        $fyStart = Carbon::create($dt->year, $this->month, $this->day, 0, 0, 0);
        $fyEnd = clone $fyStart;

        $fyEnd->addYear()->subDay();

        if (!$dt->between($fyStart, $fyEnd, TRUE)) {
            $fyEnd->year($dt->year);
        }

        return $fyEnd;
    }
public function get ( Carbon $ dt = NULL ) { if ( ! $ dt ) { $ dt = new Carbon ( ) ; } /* Disregard times */ $ dt -> setTime ( 0 , 0 , 0 ) ; /* FY is based on the -end- of the FY, thus we will work backward to determine if we need to 'rollup' the FY
        from the input year */ $ fyStart = Carbon :: create ( $ dt -> year , $ this -> month , $ this -> day , 0 , 0 , 0 ) ; $ fyEnd = clone $ fyStart ; $ fyEnd -> addYear ( ) -> subDay ( ) ; if ( ! $ dt -> between ( $ fyStart , $ fyEnd , TRUE ) ) { $ fyEnd -> year ( $ dt -> year ) ; } return $ fyEnd ; }
Get the FY end date

@param Carbon $dt Date to determine FY for

@return Carbon Carbon instance set to the end of the FY for the input
Get the FY end date