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.
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.
Most helpful comment
Just pass Calendar component
firstDay={1}