At least Safari 26.1, Javascript successfully parses dates of the format YYYY-MM-DD without workaround.
YYYY-MM-DD