Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to pass maxspan of 31 days for allowing max range of 31 days between start and end dates? #227

Closed
ndn-rishbh123 opened this issue Sep 1, 2020 · 1 comment

Comments

@ndn-rishbh123
Copy link

<DateRangePicker
        startDate={startDate}
        endDate={endDate}
        timePicker={timePicker}
        showDropdowns={true}
        ranges={showRanges && !singleDatePicker ? ranges : undefined}
        alwaysShowCalendars={true}
        showCustomRangeLabel={false}
        singleDatePicker={singleDatePicker}
        locale={locale}
        linkedCalendars={false}
        onApply={this.handleApply}
        minDate={minDate ? minDate : undefined}
        maxSpan={moment(31, "days")}
/>

I've used daterangepicker in the following manner but the maxSpan property is not working for me. I'm using version 4.1.0. Can anyone suggest what I'm doing wrong?

@skychavda
Copy link

skychavda commented Jul 19, 2021

How did you solve this issue. I am currently facing this is issue in my development, I want only select 7 days between start and end dates.

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

No branches or pull requests

2 participants