0

how get first day and last day current month in React Native to my 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)
});
}

0 Answers0