sugi / jquery-gcal-flow

jQuery Google Calendar Flow plugin
62 stars 28 forks source link

date #28

Closed daboyz1223 closed 10 years ago

daboyz1223 commented 10 years ago

Firstly I want to thank you for the update for the V3. I am using the simple layout, and was tweaking the css & js to get it to display how i want. I was trying to fix the formatting on my date, and anytime I change anything, it makes the calendar stop displaying. What do I need to do so I can change it to read my date as MM/DD/YYYY TIME Thanks!!

sugi commented 10 years ago

Please read document about globalize; http://sugi.github.io/jquery-gcal-flow/#globalize

But..., oh, now, globalize changed their API! For the present, please use 0.x version; https://github.com/jquery/globalize/tree/79ae658b842f75f58199d6e9074e01f7ce207468

Date formatting document here; https://github.com/jquery/globalize/tree/79ae658b842f75f58199d6e9074e01f7ce207468#date-formatting

I think you can use following setting for MM/DD/YYYY TIME style;

$('#your-widget-id').gCalFlow({
  globalize_fmt_datetime: "MM'/'dd'/'yyyy' 'HH':'mm",
  globalize_fmt_date: "MM'/'dd'/'yyyy",
  globalize_fmt_time: "HH':'mm",
  globalize_fmt_monthday: "MMM' 'dd"
});
daboyz1223 commented 10 years ago

Great!! I finally got it. Now my upcoming events is displaying how I want it. THANK YOU!!