How can add multiple date formats in datepicker?

How can add multiple date formats in datepicker?

Greetings friends , I have the following code:

  1. $(function() {
  2.    $( "#inicio" ).datepicker({ dateFormat: "yy-mm-dd" });
  3.    $( "#termino" ).datepicker({ dateFormat: "yy-mm-dd" });
  4. });
in which I have a couple of dates ( #inicio , # termino ) and what I want is to add some formatting to these dates as follows :

  1. $(function() {
  2.    $( "#inicio" ).datepicker({ dateFormat: "yy-mm-dd" },
    { monthNames: [ "Enero", "Febrero", "Marzo", "Abril", "Mayo", "Junio", "Julio", "Agosto", "Septiembre", "Octubre", "Noviembre", "Diciembre" ] },{ dayNamesShort: [ "Do", "Lu", "Mar", "Mi", "Ju", "Vi", "Sa" ] }
    );
  3.    $( "#termino" ).datepicker({ dateFormat: "yy-mm-dd" },
    { monthNames: [ "Enero", "Febrero", "Marzo", "Abril", "Mayo", "Junio", "Julio", "Agosto", "Septiembre", "Octubre", "Noviembre", "Diciembre" ] },{ dayNamesShort: [ "Do", "Lu", "Mar", "Mi", "Ju", "Vi", "Sa" ] }
    );
  4. });


but to test the code changes do not respect me , then. How I can add these formats ?, my dates as I try to do it this way to not write much code or not if you need to make writing code for each date by adding time as they desired formats. Could you please guide me ?.