to force the date picker to return the date formatted as dd-mm-yy, look for javascript code similar to this:
$(function(){
$('#Appointment_request_group_Best_day').datepicker({
changeMonth: true,
changeYear: true,
onClose: closeDatePicker_Appointment_request_group_Best_day
});
});
and add 'dateFormat: 'dd-mm-y',' just after the 'changeYear: true,' line:
$(function(){
$('#Appointment_request_group_Best_day').datepicker({
changeMonth: true,
changeYear: true,
dateFormat: 'dd-mm-y',
onClose: closeDatePicker_Appointment_request_group_Best_day
});
});
you will also need to change the line that initializes the spry element:
var Appointment_request_group_Best_day_Spry = new Spry.Widget.ValidationTextField("Appointment_request_group_Best_day_Spry", "date", {validateOn:["blur"]});
to:
var Appointment_request_group_Best_day_Spry = new Spry.Widget.ValidationTextField("Appointment_request_group_Best_day_Spry", "date", {validateOn:["blur"], format:'dd-mm-yy'});