Brian,
First, figure out the minimum of the two dates. Then, calculate the
start of the next fiscal year based on that minimum date. Basically, it is
10/1/xxxx where xxxx is the year of the minimum date. You will have to add
a year if the date is greater than or equal to 10/1/xxxx.
Then, take the other date. If it is greater than or equal to the
calculated date, then it is invalid.

Signature
- Nicholas Paldino [.NET/C# MVP]
- mvp@spam.guard.caspershouse.com
> Hi all,
>
[quoted text clipped - 23 lines]
> Thanks,
> Brian
Brian Simmons - 19 Jul 2007 18:23 GMT
Perfect. This makes a whole lot more sense than the garbage that was
floating around in my head today.
Thanks for your assistance!
> Brian,
>
[quoted text clipped - 33 lines]
>> Thanks,
>> Brian
static int FiscalYear(DateTime d)
{
int y = d.Year;
if (d.Month > 9) ++y;
return y;
}
static voic main()
{
if (FiscalYear(dtFromDate) == FiscalYear(dtToDate)) //
something good!
}
> Hi all,
>
[quoted text clipped - 23 lines]
> Thanks,
> Brian