code: protected function registerClientScript()
      {
          $view = $this->getView();
  
          DateTimePickerAssets::register($view);
  
          $id = $this->options['id'];
  
          $options = Json::encode($this->clientOptions);
  
          $view->registerJs("jQuery('#$id').datetimepicker($options);");
      }
docs: Registers CSS and Scripts