React-datepicker: Format calendar day names to display 3 characters instead of 2?

Created on 21 Oct 2017  路  3Comments  路  Source: Hacker0x01/react-datepicker

Hi there! I was wondering if there is any way to format the names of the days to use the 3 letter abbreviation instead of the 2 letter one? I couldn't find anything to configure the format of that part.

I'm referring to the row of day names that say MO TU, etc. I'd like to display MON, TUE, WED instead.

Most helpful comment

Figured it out! Looking through the code, I found a prop called useWeekdaysShort that does what I'm looking for. The name is somewhat misleading though haha

<DatePicker useWeekdaysShort={true} />

All 3 comments

Figured it out! Looking through the code, I found a prop called useWeekdaysShort that does what I'm looking for. The name is somewhat misleading though haha

<DatePicker useWeekdaysShort={true} />

@carmouche this isn't work for me :(

@carmouche thank you! It worked as inteded.
Did you perhaps find a way to add class to the current date-name?

Was this page helpful?
0 / 5 - 0 ratings

Related issues

delijah picture delijah  路  38Comments

nmaves picture nmaves  路  42Comments

hiredgun picture hiredgun  路  23Comments

kaushikbarodiya picture kaushikbarodiya  路  19Comments

gilbertKaradja picture gilbertKaradja  路  29Comments