React-native-calendars: Date order change

Created on 27 Jan 2020  路  3Comments  路  Source: wix/react-native-calendars

I'm trying to change the calendar view start day. By default, it's starting with Sunday. But I would like to start the day from MONDAY instead of SUNDAY.
On detailed check I have found that changing the function weekDayNames(firstDayOfWeek = 0) {}
to
function weekDayNames(firstDayOfWeek = 1) {} in dateutils.js file made the magic.
Now my calendar is starting from MONDAY instead of SUNDAY.
But I could not change the date order.
Kindly help me in changing the date order.

Correct date for March - Monday (2-3-2020) : https://prnt.sc/qtg0h1
After changing the WeekDayNames function I'm getting the below output
Screenshot: https://prnt.sc/qtg2ud

Any help would be helpful. Thanks in advance.

Question stale

Most helpful comment

Just pass Calendar component firstDay={1}

All 3 comments

Just simply change the function page(xd, firstDayOfWeek) { to function page(xd, firstDayOfWeek = 1) { which is the next function of weekDayNames on same file.

Just pass Calendar component firstDay={1}

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

henrikra picture henrikra  路  3Comments

idlework picture idlework  路  4Comments

moiiiiit picture moiiiiit  路  4Comments

nickitatkach picture nickitatkach  路  4Comments

microwin168 picture microwin168  路  4Comments