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

minDate is not working #187

Closed
dungbt229 opened this issue Sep 6, 2018 · 2 comments
Closed

minDate is not working #187

dungbt229 opened this issue Sep 6, 2018 · 2 comments

Comments

@dungbt229
Copy link

minDate={new Date()}

daterangepicker.js:660 Uncaught TypeError: this.minDate.format is not a function
at DateRangePicker.renderCalendar (daterangepicker.js:660)
at DateRangePicker.updateCalendars (daterangepicker.js:602)
at DateRangePicker.updateView (daterangepicker.js:536)
at DateRangePicker.show (daterangepicker.js:1098)
at DateRangePicker.toggle (daterangepicker.js:1132)
at HTMLDivElement.proxy (jquery.js:10268)
at HTMLDivElement.dispatch (jquery.js:5183)
at HTMLDivElement.elemData.handle (jquery.js:4991)

@skratchdot
Copy link
Owner

try using minDate={moment(new Date())} instead. it looks like maybe minDate needs to be a moment object

@skratchdot
Copy link
Owner

closing this due to inactivity. please re-open if this is still an issue in v6.0.0 or greater

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