question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Week always starts on Monday

See original GitHub issue

Hi,

changing the locale seems to have no effect, the week always starts on Monday.

Thanks for this great library!

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:6 (1 by maintainers)

github_iconTop GitHub Comments

16reactions
mekbib-teklecommented, Oct 4, 2019

I solved it this way…

        import enGb from 'date-fns/locale/en-GB';
        import DatePicker, { registerLocale } from 'react-datepicker';
        registerLocale('en-gb', enGb);

        const MyComponent = props => (
                <DatePicker
                     locale="en-gb"
                />
        );
7reactions
NicolasBenjaminWincommented, Aug 17, 2017

I found a solution.

You have to insert : import ‘moment/locale/en-gb’; and you can use locale=“en-gb”.

Now my week begin on Monday.

Read more comments on GitHub >

github_iconTop Results From Across the Web

What is the First Day of the Week? - Calendarr
Monday is the first day of the week, according to the international standard for the representation of dates and times ISO 8601. However,...
Read more >
Does the week start on Sunday or Monday? - Quora
As long as Saturday and Sunday are weekends, Monday is the 1st day of a week with no doubt.
Read more >
Monday: the Moon's Day - Time and Date
Monday is the first day of the work week. It is named after the Moon. Many big US holidays are on Mondays, like...
Read more >
Week - Wikipedia
Most of Europe and China consider Monday the first day of the week, most of North America and South Asia consider Sunday the...
Read more >
Which day do you consider the start of the week? - ABC News
Hands up for Monday ... Since the world of locomotives, industrialisation and trade the concept of the calendar changed when in 1946 the ......
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found