Hi, is there an option to change the day labels from MON, TUE, WED to M, T, W etc?
Sorry nevermind, I've figured it out now, using moment
@tuxd Can you explain how you changed it to M, T, W?
I just did a .toString().slice(0, 1) on the variable I passed to formatShortWeekday
@tuxd thanks for the response. I ended up doing this
formatShortWeekday={(locale, date) => [ `S`, `M`, `T`, `W`, `T`, `F`, `S` ][date.getDay()]}
Nice that's a bit more elegant than what I did :)
You could also do it like this using toLocaleString:
formatShortWeekday={(locale, date) => date.toLocaleString(locale, { weekday: 'narrow' })}
Most helpful comment
You could also do it like this using toLocaleString:
formatShortWeekday={(locale, date) => date.toLocaleString(locale, { weekday: 'narrow' })}