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.
ddd - Day of the week as a three-letter abbreviation.
dddd - Day of the week as its full name.
m - Month as digits; no leading zero for single-digit months.
mm - Month as digits; leading zero for single-digit months.
mmm - Month as a three-letter abbreviation.
mmmm - Month as its full name.
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="2022-25-07" width="312" />
 <script>
     $('#datepicker').datepicker({ format: 'yyyy-dd-mm' });
 </script>

  

Short Month Format

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

  

Long Month Format

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