I want to include Date processing in an application I am developing; but allow inaccurate dates to be entered and maintained. Sound strange?
If you have ever used a Genealogy application you will know what I am referring to. Enter a string value such as "abt Jun 1956", or "bef 1980", or "23 Feb 1999" would all be legal entries.
Does anyone know of a C++ Library with functions that support such formats?
The data will need to be a string, not a Date_Time variable, but when a full date value is entered it should be validated to ensure it is legit. I have experimented some with strftime() and various date parse / format functions which accept strings e.g. "yesterday", "tomorrow", etc. but they cannot handle the "Before / After / Estimate", and do not accept incomplete dates (just the year, or just month and year).
Before I begin to write my own parser for such strings I thought I would query the community to see if this has been done before.