I have some code that creates an ISO8601-formatted timestamp but if the incoming date is in an invalid format, the conversion fails.
I'd like to know if there's a standard way of representing an invalid timestamp in this format?
Wikipedia mentions years prior to 1583 as not being handled under normal operation so my first thought was to simply set the value to something like 0000-01-01T00:00:00Z
. If there's a more standard way to indicate an invalid value though, I'd rather use it instead.