Title: The way I solved datebox() format to return yyyy=mm=dd Post by: cspeerly on September 04, 2012, 10:03:44 PM 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.html NOTE: have to use the jquery.datebox.js here is the my code. Code: <script type="text/javascript" src="../easyui/plugins/jquery.datebox.js"></script> Since all my applications use MySQL this works for me Now edit the jquery.datebox.js around line 105 tou will see this. Code: var y=_1b.getFullYear(); change this return m+"/"+d+"/"+y; to this return 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 Title: Re: The way I solved datebox() format to return yyyy=mm=dd Post by: stworthy on September 04, 2012, 11:42:59 PM Please override the 'formatter' and 'parser' function to change the default datebox format, the code looks like this:
Code: $.fn.datebox.defaults.formatter = function(date){ Title: Re: The way I solved datebox() format to return yyyy=mm=dd Post by: cspeerly on September 05, 2012, 09:08:39 AM THANK YOU VERY MUCH, Finally your code worked
Many Thank's Chuck |