React-datepicker: Need to change day name from [su mo tu we th fr sa] to [s m t w t f]

Created on 6 Feb 2018  路  4Comments  路  Source: Hacker0x01/react-datepicker

Expected behaviour

Expected date name :
[s m t w t f]

Actual behaviour

Actual date name:
[su mo tu we th fr sa]

I am unable to find API or attribute to change the date name formate.

Could you please help me the API or attribute reference?

Thank you very much.

wontfix

Most helpful comment

Wow, I just asked the same question, and this has been sitting here for 8 months? Well that's discouraging.

All 4 comments

Wow, I just asked the same question, and this has been sitting here for 8 months? Well that's discouraging.

So the proper way to do this is configuring moment' for the target language, e.g.,

moment.locale('en', {
    weekdaysMin : 'S_M_T_W_T_F_S'.split('_')
});

You can do that from css as :psuedo element as :first-letter

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