After hours of messing with this. It was the only way I could get it to work.
see example here when you EDIT OR ADD a record.
http://HomersPHP.tzo.com/jqueryEasyUI/Test-5/index.htmlNOTE: have to use the jquery.datebox.jshere is the my code.<script type="text/javascript" src="../easyui/plugins/jquery.datebox.js"></script>
<script type="text/javascript">
$('#datebox(').datebox({
required:true,
});
</head>
...
<!-- *********** HTML *********** -->
<td><input id="datebox" name="dateentered"></input></td>
Since all my applications use MySQL this works for me
Now edit the jquery.datebox.js
around line 105 tou will see this.var y=_1b.getFullYear();
var m=_1b.getMonth()+1;
var d=_1b.getDate();
return y+"/"+m+"/"+d;
},parser:function(s){
var t=Date.parse(s);
if(!isNaN(t)){
return new Date(t);
}else{
return new Date();
change thisreturn m+"/"+d+"/"+y;
to thisreturn y+"-"+m+"-"+d;
When entering a date like 2013-1-3 it displays like that on the form
But when you refresh.it appears like this 2013-01-03
I tried to use mm + dd but the it errors out.
Hope this helps
Chuck