In the application I am currently writing the specification asks that a number of dates are entered without years. I want to know everyone opinion of the best way of doing this, at all levels.
I am almost certain that they should be stored in the DB as normal Date fields, However before they get here, the year should always be set to the same thing (maybe 1900 or something equally obvious).
My domain model is giving me a few problems. Do I create a new type that handles dates without years? Do I use standard DateTimes but intercept the setter to ensure that the year is always reset? is there some other option?
What about the UI. Currently we use JQuery UI for our datetime fields. Can this be adjusted to make it year independent? is there a better way of doing it?