posted 16 years ago
Hmm, well I would parse the Date, put year, month and days into an integer each, then see if it's the same year or not. If it's the same year it's obviously not more then 12 months apart. If there is a two year difference it's obviously more then 12 months apart. If there is a one year difference you have to check how far the months are apart. And maybe if it's very close you have to check the days to.
However that is only assuming there isn't a method to compare dates anyways, which I am a bit too lazy to look up at the moment^^
[ August 14, 2007: Message edited by: Kail Limas ]