Skip to content

Added minSpan option#2365

Open
diogo24m wants to merge 1 commit intodangrossman:masterfrom
diogo24m:master
Open

Added minSpan option#2365
diogo24m wants to merge 1 commit intodangrossman:masterfrom
diogo24m:master

Conversation

@diogo24m
Copy link
Copy Markdown

Added a minSpan option

If end date does not equal or exceed start date + minSpan, use the start date + minSpan as end date.

As safety measure if minSpan exceeds maxSpan, use maxSpan value for minSpan.

@pradyvrp
Copy link
Copy Markdown

I was searching for this feature and found it here but not available in a release version. Last release is also 4 years ago. It's kind of surprising how this feature wasn't included till now. Thanks for your code.

@diogo24m
Copy link
Copy Markdown
Author

I'm afraid this will never get merged

@Wernfried
Copy link
Copy Markdown

I added this feature in my fork https://github.com/Wernfried/daterangepicker

You can set parameter minSpan and maxSpan

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants