N
Nicholas Paldino [.NET/C# MVP]
William,
Can you be more specific? I mean, the only days you ever have to worry
about are 29, 30, and 31. Checking 30 and 31 are simple, if the month is
not February, then you can just have a lookup array to determine whether or
not the month has 30 or 31 days. If the month is february, and the day is
29, then you have to see if it is a leap year.
Hope this helps.
Can you be more specific? I mean, the only days you ever have to worry
about are 29, 30, and 31. Checking 30 and 31 are simple, if the month is
not February, then you can just have a lookup array to determine whether or
not the month has 30 or 31 days. If the month is february, and the day is
29, then you have to see if it is a leap year.
Hope this helps.