django-bootstrap3-datetimepicker icon indicating copy to clipboard operation
django-bootstrap3-datetimepicker copied to clipboard

Disabled dates range?

Open Fingel opened this issue 9 years ago • 0 comments

Is there a way to cleanly disable sets of dates? For example, I'm trying to disable all dates greater than today. The JS docs say to call moment, but since widget attrs are passed in as strings, I'm not sure how this could be accomplished:

options={"format": "YYYY-MM-DD HH:mm:ss", "disabledDates": "[moment.max()]" }

Fingel avatar Mar 10 '15 21:03 Fingel