Skip to content

Conversation

diogo24m
Copy link

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

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
Author

I'm afraid this will never get merged

@Wernfried
Copy link

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