Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Peter Bradsted Bodenhoff 27 posts 47 karma points
    May 09, 2011 @ 14:33
    Peter Bradsted Bodenhoff
    0

    How do I change the startday of the calendar from sunday to monday

    Hi

    I've tried to look at CalendarWeek and CalendarDay, but I can't figure it out....

    Do anyone have a solution?

  • Barry Fogarty 493 posts 1129 karma points
    Sep 26, 2011 @ 17:18
    Barry Fogarty
    0

    Hi Peter I am also looking for this solution, did you ever figure it out?

  • Peter Bradsted Bodenhoff 27 posts 47 karma points
    Sep 27, 2011 @ 09:27
    Peter Bradsted Bodenhoff
    0

    No :o(

  • Matthew Jarvis 129 posts 129 karma points
    Dec 14, 2011 @ 09:57
    Matthew Jarvis
    0

    Guys this is easy to do, if you locate the Event Area XSLT found in Developer > XSLT.  Towards the bottom of this file you are looking for a section that begins with <table class="sm_calendar"> and the 7 days of the week immediately after it,  Sunday should be the first day of the week in this list, simply copy and paste it so it is at the end.

  • Dan Virsén 9 posts 29 karma points
    Feb 26, 2012 @ 13:25
    Dan Virsén
    0

    Changing the headings for the calendar table won't actually do anything except offset the dates by one day.
    It will say that the 26th of February is a monday for instance...

    I'm also looking for a way to change this.

  • Matthew Jarvis 129 posts 129 karma points
    Feb 27, 2012 @ 09:52
    Matthew Jarvis
    0

    Dan, many thanks for pointing this out, i made the change as indicated above and didnt think of checking to make sure that the dates corresponded to the correct day of the week.  I've had this running for 2 months, thankfully no clients reporting it :-)

  • Dan Virsén 9 posts 29 karma points
    Feb 27, 2012 @ 09:59
    Dan Virsén
    0

    Glad to be of help :)

    Unfortunately I can't change it though, but I'll give it one more try today or later in the week.

  • Claushingebjerg 936 posts 2571 karma points
    Mar 16, 2012 @ 16:03
    Claushingebjerg
    0

    Bump! I have problems with this too! Please Help us out Dan Drayne

  • Anders Stentebjerg 58 posts 234 karma points
    Jun 04, 2012 @ 22:59
    Anders Stentebjerg
    0

    Any update on this one?

    -A-

  • Natalia Langa 12 posts 31 karma points
    Jul 19, 2012 @ 09:26
    Natalia Langa
    0

    Hi!

    I've figured this out. If you want to set Monday as first day in table you have to do two things:

    1. In eventArea.xslt file change FirstDayInWeekForMonth variable:

      <xsl:variable name="FirstDayInWeekForMonth">
        <xsl:choose>
          <xsl:when test="$Month &lt; 10">
            <xsl:choose>
              <xsl:when test="Exslt.ExsltDatesAndTimes:dayinweek(Exslt.ExsltDatesAndTimes:date(concat($Year,'-0', $Month, '-01'))) = 1">
                <xsl:value-of select="7" />
              </xsl:when>
              <xsl:otherwise>
                <xsl:value-of select="Exslt.ExsltDatesAndTimes:dayinweek(Exslt.ExsltDatesAndTimes:date(concat($Year,'-0', $Month, '-01'))) - 1" />
              </xsl:otherwise>
            </xsl:choose>
          </xsl:when>
          <xsl:otherwise>
            <xsl:choose>
              <xsl:when test="Exslt.ExsltDatesAndTimes:dayinweek(Exslt.ExsltDatesAndTimes:date(concat($Year,'-0', $Month, '-01'))) = 1">
                <xsl:value-of select="7" />
              </xsl:when>
              <xsl:otherwise>
                <xsl:value-of select="Exslt.ExsltDatesAndTimes:dayinweek(Exslt.ExsltDatesAndTimes:date(concat($Year,'-', $Month, '-01'))) - 1" />
              </xsl:otherwise>
            </xsl:choose>
          </xsl:otherwise>
        </xsl:choose>
      </xsl:variable>
    2. In the same file change sequence of calendar table headers (I used polish names of days in the example):

      <table class="sm_calendar">
          <tr>
            <th><abbr title="Monday">Pon</abbr></th>
            <th><abbr title="Tuesday">Wt</abbr></th>
            <th><abbr title="Wednesday">r</abbr></th>
            <th><abbr title="Thursday">Czw</abbr></th>
            <th><abbr title="Friday">Pt</abbr></th>
            <th><abbr title="Saturday">So</abbr></th>
            <th><abbr title="Sunday">Nie</abbr></th>
          </tr>
          <xsl:call-template name="CalendarWeek"/>
        </table>
Please Sign in or register to post replies

Write your reply to:

Draft