jquery ui - Datepicker formatting correctly -


OK, I have Dotepark and the initial state is like this July 21, 2010, but when I choose a date Which I get

This format is my

 

 this format 07/21/2010 How do I get it, when I select date from date picture I do,  & lt; P class = "left search_date" & gt; & Lt;% = text_field_tag ​​"tee_date", @ date.strftime ('% b.% D,% Y') ,: Size = & gt; 9 @ date% & gt; & Lt; Span class = "search_tip" & gt; (Change) & lt; / Span & gt; & Lt; / P & gt; & Lt; Script type = "text / javascript" charset = "UTF-8" & gt; $ (Document) .ready (function () {$ ("# tee_date") Datepicker (); var tee_date = $ ("# tee_date") datepicker ({maxDate: '+ 1y', minedet: new date}}) ; Click on $ (". Search_tip") (function () {tee_date.datepicker ("show");});}); & Lt; / Script & gt;  

Just add parameter dateFormat: 'md, yy' When you call the date picture function.

  var tee_date = $ ("# tee_date") datepic ({maxDate: '+ 1y', minDate: new date (date), date format : 'MD, or'});  

Comments