JavaScript Broadcast Calendar Calculation
Holy Crap! How long has it been since I posted anything here? Looks like a few months.Sorry about that. I happened to get kind of busy with a new and interesting project that consumed a lot of my time, and I didn't have anything useful I could share. Well good news, I DO have something to share. Broadcast Calendars. In the world of TV, Radio, & Advertising, they decided that the calendar we all use was not good enough.So they had to make their own calendar for the planning and purchase of programs (new & syndication) and advertising. Lets go over a how the rules of the calendar work. Every week in the broadcast calendar starts on a Monday and ends on a Sunday Every month has either four or five such weeks. Broadcast calendar months thus have either 28 or 35 days. The first week of every broadcast month always contains the Gregorian calendar first of the month. So thinking about this from an algorithm stand point, lets discuss how we can work with it. We only r...