SMALL
disabledDate={(current) =>
current && current >= moment().endOf('day')
}
위의 속성을 추가해주면 된다.
예시 코드는 아래.
<RangePicker
// defaultValue={[
// moment(selectedDates, 'YYYY-MM-DD'),
// moment(selectedDatee, 'YYYY-MM-DD'),
// ]}
format={'YYYY-MM-DD'}
value={[
getDateFormat(moment(selectedDates, 'YYYY-MM-DD')),
getDateFormat(moment(selectedDatee, 'YYYY-MM-DD')),
]}
onChange={onChange}
disabledDate={(current) =>
current && current >= moment().endOf('day')
}
/>
LIST
'일반' 카테고리의 다른 글
JavaScript - Promise.all () (0) | 2023.04.27 |
---|---|
Nodejs -> mysql 대량의 값을 insert 또는 delete (0) | 2023.04.25 |
useEffect에서 setInterval 사용할시 주의점 (0) | 2023.04.20 |
Nodejs - execute,replace (0) | 2023.04.19 |
for문같은 반복문또는 즉시실행되는 것에 async를 달고 싶을 때 (0) | 2023.04.19 |