there are 2 pieces of code on the insert page that effect the way the date is displayed:
$(function(){
$('#datepicker_1').datepicker({
dateFormat: 'mm/dd/yy',
showAnim: 'show',
onClose: closeDatePicker_datepicker_1
});
});
var jdate_Spry = new Spry.Widget.ValidationTextField("jdate_Spry", "date", {isRequired: false, format:'mm/dd/yyyy', validateOn:["blur"]});
the format needs to be changed in both places.
to use the dd-mm-yyyy format, change those 2 pieces of code to:
$(function(){
$('#datepicker_1').datepicker({
dateFormat: 'dd-mm-yy',
showAnim: 'show',
onClose: closeDatePicker_datepicker_1
});
});
var jdate_Spry = new Spry.Widget.ValidationTextField("jdate_Spry", "date", {isRequired: false, format:'dd-mm-yyyy', validateOn:["blur"]});
you will also want to change the following code on the resuklts page to change the way it shows there:
<?php echo(($row_WADAcurrent_jobs['jdate'])?date('d/m/Y',strtotime($row_WADAcurrent_jobs['jdate'])):''); ?>
change that to:
<?php echo(($row_WADAcurrent_jobs['jdate'])?date('d-m-Y',strtotime($row_WADAcurrent_jobs['jdate'])):''); ?>