jQuery DateTimePicker Change Options Dynamically

To change any of the widget options dynamically you need to get the initial options, change the desired properties and call the widget refresh(options) method, passing the new values.
This is demonstrated in the code below:

<input id="picker" ></input>
<script type="text/javascript">
$("#picker").shieldDateTimePicker({
});
function changeOptions() {
    var picker = $("#picker").swidget(),
    options = picker.initialOptions;
    options. editable = false;
    picker.refresh(options);
}
</script>