format : StringDefault: 'mm/dd/yyyy'

Specifies the format, which is used to format the value of the DatePicker displayed in the input.

d - Day of the month as digits; no leading zero for single-digit days.
dd - Day of the month as digits; leading zero for single-digit days.
m - Month as digits; no leading zero for single-digit months.
mm - Month as digits; leading zero for single-digit months.
yy - Year as last two digits; leading zero for years less than 10.
yyyy - Year represented by four digits.

Examples

Sample

    
 <input id="datepicker" value="2017-25-07" />
 <script>
     var datepicker = $('#datepicker').datepicker({
         format: 'yyyy-dd-mm'
     });
 </script>

  

Short Month Format

    
 <input id="datepicker" value="10 Oct 2017" />
 <script>
     var datepicker = $('#datepicker').datepicker({
         format: 'dd mmm yyyy'
     });
 </script>

  

Long Month Format

    
 <input id="datepicker" value="10 October 2017" />
 <script>
     var datepicker = $('#datepicker').datepicker({
         format: 'dd mmmm yyyy'
     });
 </script>