Skip to content

E_UNSUPPORTED with date skeleton: 'yMMMM' #478

@dpolivy

Description

@dpolivy

I am trying to use a dateFormatter with the following options:

{
    skeleton: 'yMMMM'
}

With locale en-US, it throws the following error:
E_UNSUPPORTED: Unsupported {"feature":"year pattern `u`"}.

It seems to be unhappy with the 4 M's; if I use any other number, then it works fine (but doesn't format it as desired). Based on the date symbol table, I would expect 4 M's to use the full month name. I'm trying to format a date as "Month Year", e.g. "September 2009" for en-us.

Is this user error, a bug, or a data issue?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions