Fix UDF date formatting

Fixes #1046
I was thinking of the situation where we are printing edits for a UDF that has since been deleted.

If we would want to show historical edits for deleted fields, the only appropriate way to handle it is to not attempt to format the value.

... but, I don't know if we want to support that.  If we don't care, you're right, we should just throw a useful exception here