django-bootstrap3-datetimepicker
django-bootstrap3-datetimepicker copied to clipboard
Disabled dates range?
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()]" }