function(element, valueAccessor, allBindings, viewModel, bindingContext) {
      var $element = $(element);
      var observable = valueAccessor();

      if (ko.unwrap(observable)) {
        $element.datepicker('update', observable.datePicker().format('DD.MM.YYYY')); // same as for .datepicker()));
      }
    }
function(element, valueAccessor, allBindings, viewModel, bindingContext) {
      var $element = $(element);
      var observable = valueAccessor();

      if (ko.unwrap(observable)) {
        $element.datepicker('update', observable.datePicker().format('DD.MM.YYYY')); 
      }
    }
function ( element , valueAccessor , allBindings , viewModel , bindingContext ) { var $element = $ ( element ) ; var observable = valueAccessor ( ) ; if ( ko . unwrap ( observable ) ) { $element . datepicker ( 'update' , observable . datePicker ( ) . format ( 'DD.MM.YYYY' ) ) ; // same as for .datepicker())); } }
from js => to "html"
from js = > to html