The enabled() method, called without any parameters, will return the current enabled state of a DateTimePicker element.
The enabled(bool) method is used to update a DateTimePicker‘s enabled/disabled state. Passing true will enable and false will disable the widget.

<input id="picker"></input>

<script type="text/javascript">
    $(function () {
            enabled: false

        $("#picker").swidget().enabled(); // returns false
        $("#picker").swidget().enabled(true) // enables the widget
        $("#picker").swidget().enabled(); // returns true