;/***************************************************************** * カスタム関数 ENO *******************************************************************/ function checkDate(field, rules, i, options){ var holiday = ["2025-04-07","2025-04-08","2025-04-14","2025-04-21","2025-04-22","2025-04-28","2025-05-06","2025-05-12","2025-05-13","2025-05-19","2025-05-26","2025-05-27","2025-06-02","2025-06-09","2025-06-10","2025-06-16","2025-06-23","2025-06-24","2025-06-30"]; var fieldDate = field.val(); var xmasStart = "2025-12-23"; var xmasEnd = "2025-12-25"; if (holiday.includes(fieldDate)) { return "定休日のため、ケーキの予約はできません。"; } if ((fieldDate >= xmasStart) && (fieldDate <= xmasEnd)) { return "クリスマス期間中のため、通常のケーキは予約できません。"; } }