Add quarter option to the Intl.DateTimeFormat() method so the caller can format dates such as "Q2 2019", "3rd quarter 2019" (or in Chinese as "2019年第2季").

Motivation

This enhances Intl.DateTimeFormat() to match what is already possible in C++ and Java by calling ICU and ICU4J. Without this feature, developers need to either format the quarter in the server or ship a set of quarter and date patterns from the server to client to perform the task.

Demo

Documentation

Status in Chromium

Blink>JavaScript>Internationalization


In development (tracking bug)

Consensus & Standardization

After a feature ships in Chrome, the values listed here are not guaranteed to be up to date.

  • No signal
  • No signal
  • No signal
  • No signals

Owners

Search tags

Intl, datetimeformat,

Last updated on 2021-04-12