Calendar library supporting holidays
Are there any existing library that support holidays (e.g. Christmas) 开发者_如何转开发highlight in the calendar itself?
Google Calendar is fine, but I just want to use the library to display the calendar, I don't actually needed to create the events.
Any idea?
Problem with you saying holidays is that you are assuming a certain country / geographical / religious affiliation.
What you should really be looking for is a way to mark certain dates with something, as ultimately that is what you need. Holidays mean nothing other than days marked off or showing different from another. Google does this by utilizing feeds (which you could use).
Mozilla keeps a list of holidays as well: http://www.mozilla.org/projects/calendar/holidays.html
You will have to apply the list to your chosen calendar (most support day / date changes, and you would loop through your holiday list and add those days / mark as special).
Here is an example of jQuery Datepicker with Bank Holidays: http://www.kelvinluck.com/assets/jquery/datePicker/v2/demo/renderCalendarBankHolidays.html
Hope that gets you started.
Rather late in posting an answer, but as the current maintainer of the relevant PEAR Packages, I would suggest that you utilise the Date Holidays suite of components from PEAR. There are drivers for most countries: Australia, USA, UK, Germany, Russia and others.
精彩评论