Ready to get started?Download WordPress


[Plugin: Google Calendar Widget] Day name with date display (2 posts)

  1. cclauset
    Posted 4 years ago #

    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

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

  2. Poco
    Posted 4 years ago #

    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.

Topic Closed

This topic has been closed to new replies.

About this Topic