Why doesn't work the dateFormat in the datepicker?

Like all elementary.
$(function() {
 $( "#id_birthday" ).datepicker({
 todayBtn: "linked",
 keyboardNavigation: false,
 forceParse: false,
 calendarWeeks: true,
 autoclose: true,
 dateFormat: 'yy-mm-dd'

All work and no dateFormat.
July 9th 19 at 12:49
2 answers
July 9th 19 at 12:51
here's a working example :
<link rel="stylesheet" href="//code.jquery.com/ui/1.11.4/themes/smoothness/jquery-ui.css">
 <script src="//code.jquery.com/jquery-1.10.2.js"></script>
 <script src="//code.jquery.com/ui/1.11.4/jquery-ui.js"></script>
the <script>
 $( "#datepicker" ).datepicker( {dateFormat: 'mm-dd-yy'} ); 

 $('body').on('click', '#format2', function(){
 $( "#datepicker" ).datepicker( "option", "dateFormat", 'yy' ); 

 $('body').on('click', '#format1', function(){
 $( "#datepicker" ).datepicker( "option", "dateFormat", 'MM' ); 


<p>date format: <input type="text" id="datepicker"></p>

<input type="button" id="format1" value="формат1">
<input type="button" id="format2" value="формат2">
thank you, I also then thought to version of Jquery.
generally some sort of confusion with the versions of Jquery in one project a few turns. - Arlie commented on July 9th 19 at 12:54
July 9th 19 at 12:53
And why not?
format: 'yy-mm-dd'
but because the docks are not written so - Arlie commented on July 9th 19 at 12:56
Blunted che. Forgot what I have in the template is used bootstrap-datepicker and it really needs a format to register as you said, format: 'yy-mm-dd', - Arlie commented on July 9th 19 at 12:59

Find more questions by tags JavaScriptjQuery