DateTime.php
protected function registerClientScript()
    {
        $view = $this->getView();

        DateTimePickerAssets::register($view);

        $id = $this->options['id'];

        $options = Json::encode($this->clientOptions);

        $view->registerJs("jQuery('#$id').datetimepicker($options);");
    }
protected function registerClientScript()
    {
        $view = $this->getView();

        DateTimePickerAssets::register($view);

        $id = $this->options['id'];

        $options = Json::encode($this->clientOptions);

        $view->registerJs("jQuery('#$id').datetimepicker($options);");
    }
Registers CSS and Scripts