UK Date format for datepicker in Google Libraries?

UK Date format for datepicker in Google Libraries?

I am running a Customer management and follow up system called Infusionsoft.

I can create secure webforms (https connections) for my clients to use that are hosted by that company.

They have a form "Builder" that lets you drag and drop elements onto the form.

One of the elements is an "HTML" element that will let you insert code.

I am trying to implement a "Date Picker" for a date field that is on the form.

I found that I could use this code to get the Date Picker Calendar to appear:

  1. <link rel="stylesheet" type="text/css" href="https://ajax.googleapis.com/ajax/libs/jqueryui/1.8.11/themes/base/jquery-ui.css" />
  2. <script src="https://ajax.googleapis.com/ajax/libs/jqueryui/1.8.11/jquery-ui.min.js" type="text/javascript"></script>
  3. <script type="text/javascript">jQuery('#inf_custom_xxxxxxxxxxxxxxxxxx').datepicker();</script>

. . . with one exception.  It formats the date like this: mm/dd/yy

I need it to display and submit the selection in this format: dd-mm-yy

I was looking here:  https://forum.jquery.com/topic/formating-the-date-picker-date

and here:  http://api.jqueryui.com/datepicker/#option-dateFormat

. . . but I really am not sure how to integrate that into the above code.

Can someone assist with this, OR, is there an option or reference within the Google Libraries that I can use that will cover this need?
How do I search for it as I am having no luck finding it.

It appears that is MUST come from the Google Libraries or else it will NOT display the Datepicker in the Chrome Browser.

Thanks for the assistance.