vcp: Clarify ordinal dates in parsed result #27
The specification lists ordinal date format
My reading of this^ section is the ordinal date format should be preserved in the assembled datetime. I wanted to confirm that's correct, though, since the only results listed are
If it should be preserved, I'd recommend we add some examples to that list.
I think it should indeed be preserved. Where you discover the specific date value earlier it explicitly says to “then use that as the date value”:
So if you found
referenced this issue
Mar 20, 2018
Current status of parsers
Go: accepts ordinal dates and converts to MM-DD in the final output.
The list of possible VCP assembled output syntaxes was intended to be comprehensive. Thus ordinal ISO dates should be normalized to YYYY-MM-DD. The spec should be explicit about this since it appears parsers disagree.
Assembled dates must be normalized YYYY-MM-DD, because parsed output consuming code likely expects that, either way, simpler for JSON consuming code.
(Originally published at: http://tantek.com/2018/084/t4/)