How to set default options in datepicker() ?

How to set default options in datepicker() ?




$(".selector").datepicker({ dateFormat: 'yy-mm-dd' });

$.datepicker.setDefaults( settings )

$(".selector").datepicker();

var defaultFormat = {dateFormat: 'yy-mm-dd'};
$.datepicker.setDefaults(defaultFormat);


Learn More :