Hi,
There should be a unified way to extract an object-oriented date value for ordering purposes from a DateInfo class.
I'd say you should add Day, Month, and Year properties to the DateInfo class, that will return the year parsed out from the date (maybe via regex). Actually having these properties as read-write would be very nice too.
I think the DateInfo lacks some manipulation functionality such as dealing with partial dates, as well as conversion to and from .NET DateTime when possible.
UPDATE,
And the truth is that it's all in the GedcomxDate library, there is just no connection between the two.
Hi,
There should be a unified way to extract an object-oriented date value for ordering purposes from a
DateInfoclass.I'd say you should add
Day,Month, andYearproperties to theDateInfoclass, that will return the year parsed out from the date (maybe via regex). Actually having these properties as read-write would be very nice too.I think the
DateInfolacks some manipulation functionality such as dealing with partial dates, as well as conversion to and from .NET DateTime when possible.UPDATE,
And the truth is that it's all in the GedcomxDate library, there is just no connection between the two.