How the date selection component of antd forbids selectable dates

clipboard.png

clipboard.png
my aim is to ban the date before today and the date after 7 days, that is, I can only choose the time in the next seven days. My code can only be banned after seven days. How can I get rid of the date before today?


    public disableDate = (currentDate: moment.Moment) => {
        return (
            currentDate &&
            (currentDate < moment(Date.now()).add(-1, 'd') || currentDate > moment(Date.now()).add(7, 'd'))
        );
    };
MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1e8d0b0-1124.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1e8d0b0-1124.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?