javascript - gCalFlow (jquery plugin) date formatting - ISO to english -


i have gcalflow running list of daily specials (cactustaqueria.com) has date formatting option returns iso style formatting. return more human readable dates including day of week. have returns following: 8/17/13 - 8/19/13 read

tues-wed (aug 17-19, 2013) (or that. key thing day of week , day of month in language not numbers).

the code call function looks so:

<script type="text/javascript">       $('#cactuscal').gcalflow({         calid: 'myid@gmail.com',         link_item_title: false,          maxitem: 6,          daterange_formatter: function(sd, ed, allday_p) { return (sd.getmonth()+1) + "/" + sd.getdate() + "/" + sd.getyear().tostring().substr(-2)+ " – " +(ed.getmonth()+1) + "/" + ed.getdate() + "/" + ed.getyear().tostring().substr(-2) }       });     </script> 

instead think if grabbing iso can grab , use date() method? not sure how go it. rewrite js files option? or directly within script on page?

this link project's github docs http://sugi.github.io/jquery-gcal-flow/


Comments

Popular posts from this blog

c# - Send Image in Json : 400 Bad request -

jquery - Fancybox - apply a function to several elements -

An easy way to program an Android keyboard layout app -