Support » Plugins and Hacks » [Plugin: Google Calendar Widget] Day name with date display

  • While I’ve tweaked the ko-calendar.js to remove the redundant “ddd, MMM d” from the onclick event details (I say redundant since each event is already under a “MMM d” title), what I’d really like to do is edit the calendar date titles to be “ddd, MMM d”. For example, currently I have:
    May 16
    Event Title
    9:00 AM – 10:00 AM
    details…

    And what I want is:
    Sunday, May 16
    Event Title
    9:00 AM – 10:00 AM
    details…

Viewing 1 replies (of 1 total)
  • The date is formatted by the date.js library and you can change the formatting quite easily. Take a look at http://code.google.com/p/datejs/wiki/FormatSpecifiers for more information about the formatting options.

    Look for the following line in ko-calendar.js.

    dateString = startJSDate.toString(‘MMM dd’);

    If you change The ‘MMM dd’ to ‘dddd, MMM d’ then you should get what you want.

Viewing 1 replies (of 1 total)
  • The topic ‘[Plugin: Google Calendar Widget] Day name with date display’ is closed to new replies.