Date format issues
Hi
I have 2 pages an insert and a results page both generated with data assist wizard. The date picker on the insert page only works when the format is set to mm,dd,yy. I need it to display as dd,mm,yy. I have tried
$(function(){
$('#jdate').datepicker({
changeMonth: true,
changeYear: true,
dateFormat: 'dd-mm-y',
onClose: closeDatePicker_jdate
});
But that does not effect the display of the date, I have also tried setting the format in datepicker to dd,mm,yy but this gets an error when trying to insert the record , I have tried editing the insert code
"Customer|Job|Parts_Required|Issues|Location|Tech|Contact|Priority|jdate";
$WA_fieldValuesStr = "".((isset($_POST["Customer"]))?$_POST["Customer"]:"") ."" . $WA_AB_Split . "".((isset($_POST["Job"]))?$_POST["Job"]:"") ."" . $WA_AB_Split . "".((isset($_POST["Parts_Required"]))?$_POST["Parts_Required"]:"") ."" . $WA_AB_Split . "".((isset($_POST["Issues"]))?$_POST["Issues"]:"") ."" . $WA_AB_Split . "".((isset($_POST["Location"]))?$_POST["Location"]:"") ."" . $WA_AB_Split . "".((isset($_POST["Tech"]))?$_POST["Tech"]:"") ."" . $WA_AB_Split . "".((isset($_POST["Contact"]))?$_POST["Contact"]:"") ."" . $WA_AB_Split . "".((isset($_POST["Priority"]))?$_POST["Priority"]:"") ."" . $WA_AB_Split . "".((isset($_POST["jdate"]) && $_POST["jdate"]!="" )?date("Y-m-d H:i:s", strtotime($_POST["jdate"])):"") ."";
But again no success
Its been a while since I have done any web dev work so I am probably missing something very obvious
Please see attached file for full code
Thanks
Keith