Some time, the code like this
could cause error like this
This issue for example:
I had the question - reproduce this error, unfortunately I have no "bad" document.
If you have the same problem, you could create "corrupted DateTime item" by this simple code