Skip to content

.weekdays() improvement #936

@OlivierSte

Description

@OlivierSte

Describe the bug

Currently .weekdaysMin() and .weekdaysShort() always return formatted weekdays starting at index 0.

Expected behavior

Locale files having a weekStart property should return the weekdays ordered accordingly.

In Moment you can pass a boolean to make it locale aware.

As of 2.13.0 you can pass a bool as the first parameter of the weekday functions. If true, the weekdays will be returned in locale specific order. 

Information

  • Day.js Version: 1.8.28

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions