I'm creating a database to store a bunch of information on various animal species, and one of the peices of information I would like to store is the migration and breeding dates of the animal. I was wondering if there was a way I could use the Date type for this information, and be able to store/compare dates without keeping track of the year at all.
Currently I'm storing the day# (out of 365) that the breeding/migrating period starts and ends as a Number type, then computing which month/day that is when it needs to be displayed. This makes the comparasons easy, but displaying this in a meaningful way to the user is cumbersome.
Is there a better way? Keep in mind, I need to be able to find if a date falls within the breeding / migrating period (even if the period spans the year-end). And that birds don't migrate from July 21, 2001 - August 31, 2005.... (ie years not important).
Currently I'm storing the day# (out of 365) that the breeding/migrating period starts and ends as a Number type, then computing which month/day that is when it needs to be displayed. This makes the comparasons easy, but displaying this in a meaningful way to the user is cumbersome.
Is there a better way? Keep in mind, I need to be able to find if a date falls within the breeding / migrating period (even if the period spans the year-end). And that birds don't migrate from July 21, 2001 - August 31, 2005.... (ie years not important).