The short Dateformatter is now providing different space character. Binary value "11100010 10000000 10101111" rather than "00100000" for the space.
In documentation also have the "00100000" https://developer.apple.com/documentation/foundation/dateformatter/style/short
Binary value "11100010 10000000 10101111"
In hex those bytes are E2 80 AF
, the UTF-8 encoding for Unicode U+202F NARROW NO-BREAK SPACE
. So that’s a plausible character to use for putting space between words when formatting a string.
In documentation also have the [good old ASCII space character] “00100000”
If you mean the space in the example string “3:30 PM” then notice it’s labeled as an example, not as any sort of API you should rely on.
Dateformatter issue with short style
What is the issue? If you are trying to parse the formatted date string and expecting to find a specific character (e.g. an ASCII space between words) then you shouldn’t do that. That would be a form of undefined behavior, since the exact output of the date formatter isn’t documented, and in fact can be very different across languages and locales. In this case it sounds like they decided to improve the typography of formatted dates a little. If you just display the formatted string as-is then it should still work fine.