Help with Date Picker Return Date Format

Help with Date Picker Return Date Format

Hello,

I am using the date picker and it works great.  Implemented, fine.   However, once it was implemented, my sites in Australia and UK have an issue.

My user logs in, and their configuration has a global value which indicates how their dates are:

MM/DD/YYYY  (1)
or
DD/MM/YYYY  (2)

When my #2 users have the field, and the calendar comes up, they select it, and the information is placed in the input field as:  MM/DD/YYYY rather than DD/MM/YYYY

Obviously this is an issue.

I need to tell the date picker to populate the field as DD/MM/YYYY  ---  how do I do this?


My code is really simple:

  1. <script>
     jQuery(function($){ 
     $('#GetCI').datepicker();
     })
    </script>