We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
formatWeekDay is supposed to be provided the day of the week as a string, eg, "Friday"
formatWeekDay
formatWeekDay is being provided a string of numbers, eg, "0016"
<DatePicker selected={this.state.date} onChange={date => this.setState({ date })} formatWeekDay={d => { console.log("D", d) return d; }} />
The problem is that package.json has date-fns v2, which has breaking changes, one of which is the format for the day of the week.
package.json
date-fns
To fix this, either change package.json to use version 1 of date-fns, or update this line to have a format of "EEEE"
"EEEE"
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Expected behavior
formatWeekDay
is supposed to be provided the day of the week as a string, eg, "Friday"Actual behavior
formatWeekDay
is being provided a string of numbers, eg, "0016"Steps to reproduce
The problem is that
package.json
hasdate-fns
v2, which has breaking changes, one of which is the format for the day of the week.To fix this, either change
package.json
to use version 1 ofdate-fns
, or update this line to have a format of"EEEE"
The text was updated successfully, but these errors were encountered: