I have another question from a different directive which is producing an error now.
This line
datetimepicker.data("DateTimePicker").setDate...
says: TypeError: Cannot read property 'setDate' of undefined
and I can see that datetimepicker.data("DateTimePicker") returns undefined although datetimepicker is initialized and has data method.
So, what is this new error about and what can I do now?
If it's not broken, fix it until it is.
My Blog