I need to have two date fields, start date and end date. Both are optional – I will conditionally output stuff only if they are set, plus do some filtering. However, the date fields always defaults to todays date. I tried using allowempty attribute, which does add empty values at the top of the options, but Perch doesn't save the empty values (they revert to 1 jan 1970 on save).
I thought about:
• creating regular select fields for day, month, year but then I loose to ability to format the dates, which I need.
• treating "1 jan 1970" as empty, perhaps in combination with some checkbox to "disable dates". However the editor experience for the client would be a bit awkward.
Anyone have a solution for this? Or perhaps built their own fieldtype?