csydow
Posts: 22
|
| Posted: 02/13/2007, 2:00 AM |
|
I need to develop a calendar that uses my company's fiscal months instead of the usual months. Anyone out there know how to set the start and end days of months?
Thanks for your help!
|
 |
 |
wkempees
Posts: 1679
|
| Posted: 02/13/2007, 7:03 AM |
|
Calendar takes it's FirstWeekDay from the Locales().
Take a look at generated code and search for "FirstweekDay"
But can be overriden easily.
(Sorry for PhP example should be easy to ASP though:)
In BeforeShow event:
global CCSLocales;
echo $Component->FirstWeekDay; // will show current value (usualy 1)
echo $CCSLocales->GetFormatInfo("FirstWeekDay"); // same from Locales
$Component->FirstWeekDay = 5; // is the PhP way to give it a different value Friday
Hope you can use this.
Walter
_________________
Origin: NL, T:GMT+1 (Forumtime +9)
CCS3/4.01.006 PhP, MySQL .Net/InMotion(Vista/XP, XAMPP)
if you liked this info PAYPAL me: http://donate.consultair.eu
|
 |
 |
csydow
Posts: 22
|
| Posted: 02/13/2007, 1:46 PM |
|
Thanks for your reply... The first day of week will always be Monday.. however, for example, January, our first period of this year, lasted from Jan 1 through Feb 4. I want that to show up as month #1 in my calendar. Then, month 2 is from Feb 5 through March 4...got any ideas?
Thanks again!
|
 |
 |
wkempees
Posts: 1679
|
| Posted: 02/14/2007, 9:31 AM |
|
phew,
maybe later
_________________
Origin: NL, T:GMT+1 (Forumtime +9)
CCS3/4.01.006 PhP, MySQL .Net/InMotion(Vista/XP, XAMPP)
if you liked this info PAYPAL me: http://donate.consultair.eu
|
 |
 |
|