The gatekeeper of reality is quantified imagination.
Project "ASP.Net Calendar Calc"
Purpose
The purpose of this project is to provide a class that you use in your ASP.NET 3.5 visual basic pages to derive all types of information associated to a date by simply providing a calendar date.
Example
Simply provide a calendar date (such as 1/13/2010) and the functions in the calendar calculator class will provide you with: Input Date: 1/13/2010
There are 6 weeks in the month.
There are 31 days in the month.
The first day of the month is on a Friday.
The last day of the month is on a Sunday.
The date 1/13/2010 falls on the 3rd week of the month.
The date 1/13/2010 day number of week (1-7) is 4.
The date 1/13/2010 day name is Wednesday.
The date 1/13/2010 falls on the 2nd occurance of Wednesday. Input: 10 months
Matching future dates that fall on the same week and day as 1/13/2010 are:
2/10/2010, 3/10/2010, 4/14/2010, 5/12/2010, 6/9/2010, 7/14/2010, 8/11/2010, 9/8/2010, 10/13/2010, 11/10/2010. Input: 6 weeks
Matching future dates that fall on the same day as 1/13/2010 are:
1/20/2010, 1/27/2010, 2/3/2010, 2/10/2010, 2/17/2010, 2/24/2010.
Download Class
Download the calendar calculator class HERE (in .ZIP format). The Readme.txt file contains general use information and Demo.aspx shows the calendar calculator functions in action.