Add millisecondDigits option to Intl.DateTimeFormat

Enhance the Intl.DateTimeFormat API by adding a “millisecondDigits” option to control the format of fractions of a second.

The Date object in ECMAScript stores time information with millisecond precision. Some web developers need to output milliseconds. This option enhances Intl.DateTimeFormat to control formatting of fractions of second. The value of millisecondDigits should be an integer between 0 to 3 to represent how many digits the DateTimeFormat should output after the decimal mark.




Public discussion

Status in Chromium


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 public signals
  • No public signals
  • No public signals
  • No signals


Last updated on 2019-05-30