Convert input to datepicker

Hello,

Is it possible to convert an input to a datepicker without creating a whole view object?
Something like:

$("#datefield").datepicker({options});

Hello,

You may try to use the following approach to replace one view in Layout or Form with the new one:

var config = {
view:“datepicker”,

}

dhx.ui(config,$$(“form_id”),“old_view_id”)