📜  dayclick 获取今天及以后的日期 - Javascript 代码示例

📅  最后修改于: 2022-03-11 15:03:41.328000             🧑  作者: Mango

代码示例1
dayClick: function( date, jsEvent, view) {
    if (moment().format('YYYY-MM-DD') === date.format('YYYY-MM-DD') || date.isAfter(moment())) {
        // This allows today and future date
    } else {
        // Else part is for past dates
    }

},