This Question is Assumed Answered

1 "correct" answer available (5 pts) 13 "helpful" answers available (3 pts)
3 Replies Last post: Jul 8, 2008 6:11 AM by Kamal

about CalendarControl's National Holiday

Jul 8, 2008 1:14 AM

Click to view Poseidon.UD's profile Level 2 Poseidon.UD 37 posts since
Jul 3, 2008

About CalendarControl's National Holiday


for example:
Every year's Holiday is 01/10 (day/month)
i hope the Every year's 01/10 is Holiday in CalendarControl.

CalendarControl's property of holidays's format is "Datetime : year+month+day",
i don't want to set the "year".
just like "10/1"(month+day).
what can i do? thank u.

Click to view carl's profile Curl carl 74 posts since
Oct 17, 2007
1. Re: about CalendarControl's National Holiday Jul 8, 2008 1:40 AM
This might not be possible in a simple way, but if you have a broad range of permissible dates and didn't want to fill in the full list, you should be able to override CalendarControl.set-display-month-year to update the holiday list dynamically, just as the new month or year is shown, adjusting the year on the entries to match the new year.
Click to view Poseidon.UD's profile Level 2 Poseidon.UD 37 posts since
Jul 3, 2008
2. Re: about CalendarControl's National Holiday Jul 8, 2008 2:53 AM
in response to: carl

i think so.thank u.

if i want to use date before 1970.1.1,(for example 1965/10/01),

what can i do ?

Click to view Kamal's profile Curl Kamal 139 posts since
Oct 17, 2007
3. Re: about CalendarControl's National Holiday Jul 8, 2008 6:11 AM
in response to: Poseidon.UD
Use DateTime.date factory to create a DateTime to represent a calendar date.