Update datepicker_example_1.txt

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

View File

@ -30,7 +30,7 @@ class DatePickerTest extends React.Component {
<DatePicker
label='Formatted Date'
autoOk
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}
/>