'isInSchedule' method is not working as expectedDescriptionThis KB talks about a scenario where 'isInSchedule' returns false instead of true though the schedule is active.Release or EnvironmentAllCauseThe most possible root cause is because of 'GlideDateTime()', By passing the date/time directly to the 'GlideDateTime' API results in causing the error 'Not in schedule' though it's in the schedule is in scheduled hours. var date = new GlideDateTime("2007-09-18 12:00:00"); Or var date = new GlideDateTime(gs.nowDateTime()); ResolutionInstead of passing the date/time directly to the 'GlideDateTime' API, Need to set the display value 'setDisplayValue' with the time/date as shown in the below example. var glide = new GlideRecord('cmn_schedule'); glide.addQuery('type', 'blackout'); glide.query(); while (gr.next()) { var sched = new GlideSchedule(glide); var date = new GlideDateTime(); date.setDisplayValue(gs.nowDateTime()); if (sched.isValid()) gs.info("Is valid");Additional InformationPlease refer to the Document to know more.