Test parsing a date from a substring of another string. These fail for at least a couple of reasons.
Shorter, probably faster, and certainly more Unicode-aware whitespace-skipping. Fixes one cause of test failures (strlen returns zero) and makes this loop much faster than it was when we were using chars.
Include Z, when it appears, in the range of the date substring. Fixes the substring test failures.