Format a Gregorian date with a Unicode-style pattern. The full Gregorian calendar is resolved internally via a round-trip conversion, so day-of-year (D) and week-of-year (w) work.
D
w