I am using react-day-picker. By default, it shows system date as the highlighted date. I want to use the date received from the server and make it highlighted date.
Here's my code :-
<DayPickerInput
onDayChange={this.handleDayChange.bind(this, 'maximumDeliveryDate')}
format="DD/MM/YYYY"
formatDate={formatDate}
placeholder="DD/MM/YYYY"
value={this.state.maximumDeliveryDate}
inputProps={{readOnly: 'readOnly'}}
dayPickerProps={{
selectedDays: this.state.selectedDay,
disabledDays: {before: new Date()}
}}/>
Has anyone done something like this?