Shift additional date serialization utilities into `serializeDate`