<input type=date> shows "2026/02/10 ()" when Windows short date contains a weekday

#574997087 Filed 2026-10-19 Blink>Forms

Live test

On Windows, set Control Panel > Region > Additional settings... > Date > Short date to yyyy/MM/dd '('ddd')', then reload this page.

Expected: 2026/02/10 (or the weekday shown). Actual: 2026/02/10 () - empty parentheses.

Before / after

Before

unpatched

date input showing 2026/02/10 ()
After

patched

date input showing 2026/02/10

Cause

LocaleWin::DateFormat() maps the Windows pattern ddd to LDML EEE. The date field builders (DateTimeEditBuilder, DateTimeStringBuilder) have no day-of-week field and silently skip it, but keep the literal parentheses around it.

Fix: ConvertWindowsDateTimeFormat() drops ddd/dddd together with the literals around them, so every consumer of the converted pattern is covered.

Repro source

<input type="date" value="2026-02-10">