Skip to content

dateFormatter does not recognise skeleton with EEEE #455

@murdockcrc

Description

@murdockcrc

Hi,

I have a date represented by the milliseconds figure and would like to get the full name of the Day that date corresponds to.

I have tried the following, but it seems like skeleton does not recognize the formatter 'EEEE', which is correct from the standard's perspective:

var dateFormatOptions = {skeleton: 'EEEE'};
var deFormatter = Globalize('de').dateFormatter(dateFormatOptions);

This fails with the exception 'E_UNSUPPORTED: Unsupported {"feature":"year pattern u"}'

However, this code does work as expected and returns the full name of the day:

    var dateFormatOptions = {raw: 'EEEE'};
    var deFormatter = Globalize('de').dateFormatter(dateFormatOptions);

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions