However, bootstrap-datepicker no longer has these pick* options. I get the following error when trying to use them:
Uncaught TypeError: option pickTime is not recognized!
Instead, the hasTime and hasDate methods look at actualFormat to determine if time or date pickers are needed. To get things working for my datepicker, I found that specifying a format works to get hasTime to return false:
The README suggests that we add the following javascript to our project:
However, bootstrap-datepicker no longer has these pick* options. I get the following error when trying to use them:
Instead, the
hasTime
andhasDate
methods look atactualFormat
to determine if time or date pickers are needed. To get things working for my datepicker, I found that specifying a format works to gethasTime
to return false: