import moment from 'moment';
import 'moment/locale/zh-cn';
function disabledDate(current) {
// Can not select days before today and today
return current && current > moment().endOf('day');
}
<RangePicker
style={
{
width: 240, height: 40 }}
format="YYYY-MM-DD"
onChange={
item.change}
disabledDate={
disabledDate}
/>