Update pickers.js
Just like in components/date_picker/readme.md, you need to add 1 to value.getMonth()old
parent
1b0d9e57e9
commit
49fa53aa96
|
@ -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}
|
||||
/>
|
||||
|
|
Loading…
Reference in New Issue