jQuery Date Picker Input Date Format

http://stackoverflow.com/questions/11104933/jquery-date-picker-input-date-format

HTML

<link rel="stylesheet" href="http://code.jquery.com/ui/1.8.21/themes/base/jquery-ui.css">
Shown Field : <input id="thedate" type="text" /><br />

JavaScript

$(function(){
    
    $('#thedate').datepicker({
        minDate: "+3",
        dateFormat: 'dd-mm-yy'
    });
    $('#thedate').datepicker("setDate", "+3");
    
});