I am developing a geneology application, and I have a need to store dates for events. However I need to be able to support circa dates and actual dates, so I am thinking of having evendate and ceventdate (for the circa) columns so that I can index the event date when it is available.
However the more I think about the more I wonder whether I should have the following instead: eventyear, eventmonth, eventday, circa (definition) so that I can store years and months from analyzing the circa.
Thoughts?
I use the GEDCOM definition of dates. I think they did a pretty good job of thinking dates through and including much of what is needed.
I recently wrote a blog post about GEDCOM dates. Some of what I said was:
For approximate dates, they use:
There are a bunch of other constructs as well, including interpreted dates and date phrases.
Since you’ll most likely want your genealogy application to import from GEDCOM and export to GEDCOM, you may want to decide on some date implementation that will be easy to translate to/from the GEDCOM format.