Convert UDF collection values to YYYY-MM-DD when saving.

Fixes #1657