Thanks Cherif, for your reply.
In the meantime we have solved the problem by using a view helper. We put the follwing lines into it:
-
can.$(el).datepicker({ dateFormat: format, onSelect: function (date) {
attrValue(date, attrValue()); //
}});