Implementation of DateTimeFormat.formatToParts()
is missing.
Any attempt to add this method will likely need to look at the implementation of options
which the DateTimeFormat
constructor currently ignores.
options
is most likely integral to the implementation DateTimeFormat.formatToParts()
and as such fixing this issue will probably be involved.
Supporting options
will also affect DateTimeFormat.format()
.
Here is a possible test for the latter:
var options = {
weekday: "long",
year: "numeric",
month: "long",
day: "numeric",
};
var dateTimeFormat = new Intl.DateTimeFormat("en-US", options);
// Chrome: Wednesday, May 24, 2023
// HtmlUnit: 05/24/2023
console.log(dateTimeFormat.format(new Date()));
Pay now to fund the work behind this issue.
Get updates on progress being made.
Maintainer is rewarded once the issue is completed.
You're funding impactful open source efforts
You want to contribute to this effort
You want to get funding like this too