Update pickers.js

Just like in components/date_picker/readme.md, you need to add 1 to value.getMonth()
old
David Cho-Lerat 2016-07-07 20:07:59 +02:00 committed by GitHub
parent 1b0d9e57e9
commit 49fa53aa96
1 changed files with 1 additions and 1 deletions

View File

@ -43,7 +43,7 @@ class PickersTest extends React.Component {
<DatePicker
label='Formatted Date'
inputFormat={(value) => `${value.getDate()}/${value.getMonth()}/${value.getFullYear()}`}
inputFormat={(value) => `${value.getDate()}/${value.getMonth() + 1}/${value.getFullYear()}`}
onChange={this.handleChange.bind(this, 'date3')}
value={this.state.date3}
/>