I want to have a "birthdate" field for my users. It should be optional to enter a year or a date. If a year is selected I want to display the age. If a date is entered I want to show the birthdate.
If I use the date field and make it optional I can have empty default values. However, as soon as I enter a year it requires the date and month too and vise versa.