React Datepicker
// npm install react-datepicker --save
import React, { useState } from 'react'
import './App.css'
import DatePicker from 'react-datepicker'
import 'react-datepicker/dist/react-datepicker.css'
function App () {
const [selectedDate, setSelectedDate] = useState(null)
return (
<div className='App'>
<DatePicker
selected={selectedDate}
onChange={date => setSelectedDate(date)}
placeholderText={'dd/mm/yyyy'}
filterDate={date => date.getDay() !== 6 && date.getDay() !== 0} // weekends cancel
showYearDropdown // year show and scrolldown alos
scrollableYearDropdown
/>
</div>
)
}
export default App
Abhishek