Blog
Documentation
Book a Demo
toggle menu
Categories
Discussions
Activity
Best Of...
Sign In
Sign In
Categories
Discussions
Activity
Best Of...
Sign In
×
Home
›
Vanilla 1.0 Help
Discussion
DCalendar
Author
Date within
1 day
3 days
1 week
2 weeks
1 month
2 months
6 months
1 year
of
Examples: Monday, today, last week, Mar 26, 3/26/04
Search
DCalendar
Wanderer
August 2006
edited August 2006
in
Vanilla 1.0 Help
DCalendar
0
Comments
kimC
March 2007
Is it possible to define Monday as the first day of the week?
0
ThaRiddla
New
March 2007
would you be able to extend/modify this to display events? Perhaps combine this with the countdown calendar?
0
Wanderer
March 2007
Sorry people, this one is provided 'as is' but if anyone wants to take it over let me know, I'll send you the source files.
Posted: Saturday, 31 March 2007 at 8:33AM
0
kimC
March 2007
To make Monday the first day of the week, this should do the trick:
Line 21:
var day_of_week = new Array(
'M','T','W','T','F','S','S'
);
Line 43:
for(index=
1
; index < Calendar.getDay(); index++)
Line 50:
if(week_day ==
1
)
Line 52:
if(week_day != DAYS_OF_WEEK
+1
)
Line 60:
if(week_day == DAYS_OF_WEEK
+1
)
0
Cochise
October 2008
Not showing in extension list. Could there be interaction or naming issues?
0
itproxy
January 2009
Thanks for this extension, and to kimC for the Monday start code changes; looks really nifty!
0
itproxy
February 2009
Code changes suggested by kimC for starting week on Monday are not working now we are in February! The 1st appears as Mon (as does 2nd, rest also works OK).
0
Sign In
or
Register
to comment.
Comments
Posted: Saturday, 31 March 2007 at 8:33AM
Line 21:
var day_of_week = new Array('M','T','W','T','F','S','S');
Line 43:
for(index=1; index < Calendar.getDay(); index++)
Line 50:
if(week_day == 1)
Line 52:
if(week_day != DAYS_OF_WEEK+1)
Line 60:
if(week_day == DAYS_OF_WEEK+1)