Skip to content

Calendar class comingSoon() extra option #153

@duck7000

Description

@duck7000

Another user wanted endDate override to be added so a user can limit how many days is returned instead of the default one year.
That user made a PR request but messed it up a bit (at least in my view) so i closed that request.
My question: is there any interest to include that option?

       $futureDate = date('Y-m-d', strtotime('+1 year', strtotime($startDate)));
        if ($endDateOverride > 0) {
            $futureDate = date('Y-m-d', strtotime( '+' . $endDateOverride . ' days', strtotime($startDate)) );
       	}

@GeorgeFive maybe?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions