Change Datepicker Date Format for Sql

https://jsfiddle.net/jquerybyexample/dxbtp/494/

i used this code for Date Range but this input format is MM/dd/yyyy . i want change this format MM/dd/yyyy for send my Database.

if i change this line

        var dtFormatted = mm + '/'+ dd + '/'+ y;

to

        var dtFormatted = dd+ '/'+ mm + '/'+ y;

input tag doesn’t work properly