I'm trying to set the the date format to `'dd-mm-yy'`

Here is my script, but this doesn't seem to work. It still displays the standard `'mm-dd-yy'`

What I'm I doing wrong. Here is my script:

```
<script>
    $(function () {
        $("#datepickerStartDate").datepicker();
        $("#format").change(function () {
            $("#datepickerStartDate").datepicker({ dateFormat: 'dd-mm-yy' }).val();
        });
    });
</script>

```