I'm attempting to represent a company's founded date in C#. I occasionally have a full day, month, and year, but more often I only have a month and year, or sometimes a year alone.
Is there a way I can represent this in NodaTime, in such a way as to then also allow comparison between them? i.e. 2012 < June 2013 == true
, but 2013 < June 2013 == false
because it is the same year.
I also need to be able to unambiguously retrieve the stored data. What I mean by unambiguously is that I cannot store 2013
as 1/1/2013
because I would not be able to retrieve the information that I only know the date to be 2013
.