Reworking date editor to use the component directly. This simplifies code a lot.