Calendar control
-
I recently just started to design a tool to help me at work, it works kind of like a Hotel Reservation system. Before we used a program called "Calendar Creator" to manage all the reservations for a given day; however there are a lot of other ways we need to view the data as well. For example sometimes we need to submit reports on how many people are staying in certain buildings and percentages. So I decided to write a tool to manage all this. Everything is going good so far, but one problem.. I need this tool to be able to write all the added entries to a calendar. So I figured I would create a "Calendar View" that would display a calendar with all the added entries. However I soon found that there are no standard or popular calendar controls. So far ever Calendar controls I have seen are really just date pickers. So I figured I would write one myself, however I'm bad at math.. so the question. 1. Do I have to write one myself? (I don't want to re-invent the wheel) 2. If I do have to write it myself, how would I be able to tell that say Feb 10 2003 would be on a Monday? Any help would be appreciated. Thank you.
-
I recently just started to design a tool to help me at work, it works kind of like a Hotel Reservation system. Before we used a program called "Calendar Creator" to manage all the reservations for a given day; however there are a lot of other ways we need to view the data as well. For example sometimes we need to submit reports on how many people are staying in certain buildings and percentages. So I decided to write a tool to manage all this. Everything is going good so far, but one problem.. I need this tool to be able to write all the added entries to a calendar. So I figured I would create a "Calendar View" that would display a calendar with all the added entries. However I soon found that there are no standard or popular calendar controls. So far ever Calendar controls I have seen are really just date pickers. So I figured I would write one myself, however I'm bad at math.. so the question. 1. Do I have to write one myself? (I don't want to re-invent the wheel) 2. If I do have to write it myself, how would I be able to tell that say Feb 10 2003 would be on a Monday? Any help would be appreciated. Thank you.
ROK_RShadow wrote: 1. Do I have to write one myself? (I don't want to re-invent the wheel) I've worked with the Microsoft calendar controls and they seem to be full of lots of frustrating bugs, so I'd say you're probably better of working from scratch ROK_RShadow wrote: 2. If I do have to write it myself, how would I be able to tell that say Feb 10 2003 would be on a Monday? The Doomsday Algorithm[^] http://www.codeproject.com/datetime/DoomsdayDate.asp[^] -- Help me! I'm turning into a grapefruit!