Skip to content

Can't get the Days of the Week #779

Closed
@faropoulos

Description

@faropoulos

Describe the bug
I should be able to get all the days of the week with dayjs().weekdays(). Sadly, that function doesn't exist. I even tried the weekday plugin, and still get nothing. Am i missing something;

Below you will find the code

import dayjs from 'dayjs';
import el from 'dayjs/locale/el';

dayjs.locale('el');
dayjs().weekdays();

Expected behavior
I should be able to get an array with the names of the Days of the Week.

Information

  • Day.js Version 1.8.19
  • OS: Mac OS
  • Browser Chrome 79
  • Time zone: Eastern European Time Zone, GMT +3

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions