如何在React Native中将当前月的第一天和最后一天获取到我的DatePicker
constructor(props){
super(props)
this.state={
modalVisible: false,
date:new Date(),
minfecha: '',
maxfecha: '',
isLoading: false,
},
this.setState({
minfecha: new Date(this.state.date.getFullYear(), this.state.date.getMonth(), 1),
maxfecha: new Date(this.state.date.getFullYear(), this.state.date.getMonth() + 1, 0)
});
}