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

Cannot select dates before 1970.

Open w8s opened this issue 9 years ago • 1 comments
trafficstars

Using the current bootstrap3-datetimepicker, I cannot select dates before 1970.

see similar issue with angular package.

screen shot 2016-03-03 at 8 28 46

It appears newer versions of the bootstrap3-datetimepicker library fix this. I noticed a few pull-requests to integrate newer versions of the bootstrap3-datetimepicker in this package. Are there plans to integrate updated versions?

w8s avatar Mar 03 '16 13:03 w8s

In the widget options in your form you need to set the start date, like so.

widget=DateTimePicker(options={"format": "DD-MM-YYYY", "pickTime": False, "startDate": '-Infinity'})

-Infinity lets you select any date.

macdonaldcalumj avatar Apr 13 '16 08:04 macdonaldcalumj