Skip to content

How to format the weekdays? #1671

Answered by gpbl
2kjen asked this question in Support
Feb 1, 2023 · 1 comments · 1 reply
Discussion options

You must be logged in to vote

@2kjen you can pass a formatWeekdayName function to the formatters prop to format the name of the week:

<DayPicker
   formatters={ formatWeekdayName: (day) => { /* return `Mon` or whatever */ }
/>

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@2kjen
Comment options

Answer selected by 2kjen
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants