I'm trying to put the default day into a Calendar component.
at the moment I set it fixed in the state:
Code: Select all
this.state = {
start: '18/06/2020'
};
<Calendar id="data_inizio" showIcon={true} value={this.state.start} required
onChange={(e) => this.setState({start: e.value, minDate: e.value})}
dateFormat="dd/mm/yy" monthNavigator={true} yearNavigator={true}
yearRange="2020:2030" touchUI={true}/>