Fix bug #45087 - Correctly detect date formats like [Black]YYYY as being date based