Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic MonthRange - Start Week on Monday (Read 2356 times)
hdmoose
YaBB Newbies
*
Offline


I love YaBB 1G - SP1!

Posts: 2
Joined: Oct 15th, 2007
MonthRange - Start Week on Monday
Oct 15th, 2007 at 1:06pm
Print Post  
In the MonthRange view is there a way to display Monday as the first day and have it end on Sunday?  To clarify, change the calendar from Sun - Sat to Mon - Sun.

Thanks in advance.
  
Back to top
 
IP Logged
 
Meppy
God Member
*****
Offline


MindFusion support

Posts: 1783
Joined: Jul 20th, 2005
Re: MonthRange - Start Week on Monday
Reply #1 - Oct 16th, 2007 at 4:54am
Print Post  
You have to either specify a culture whose first day of the week is Monday through the Calendar.Culture property, or directly set the first day of the week through the Calendar.DateTimeFormat property as in the following sample code:

Code
Select All
calendar.BeginInit();
calendar.DateTimeFormat.FirstDayOfWeek = DayOfWeek.Monday;
calendar.EndInit(); 


You can also perform this change at design-time through the property grid.

Meppy
  
Back to top
 
IP Logged
 
hdmoose
YaBB Newbies
*
Offline


I love YaBB 1G - SP1!

Posts: 2
Joined: Oct 15th, 2007
Re: MonthRange - Start Week on Monday
Reply #2 - Oct 16th, 2007 at 11:13am
Print Post  
Thanks, thats perfect!
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint