Previous Topic: applyXPathToUrlNext Topic: convertJson


checkCalendarDate

The checkCalendarDate function checks whether the specified date is inside the specified condition. The condition includes the Include Calendar, Exclude Calendar, Delta, Open Days and Max shifts. See Calendar Properties for more information about these parameters.

Syntax

bIsAvail = checkCalendarDate(date, includeCalendar, excludeCalendar, delta, openDays, maxShifts)

Arguments

date (java.util.Date)

Specifies the input date.

includeCalendar (String)

Specifies the path of the include calendar object.

excludeCalendar (String)

Specifies the path of the exclude calendar object.

delta (Int)

Specifies the delta.

openDays (Int)

Specifies the openDays value.

maxShifts (Int)

Specifies the maxshifts value.

Return Value

bIsAvail (Boolean)

This function returns true if the specified date is open and false if it not.

Example

Process.sIncCal=absPath("IncCal");
Process.sExcCal=absPath("ExcCal");Process.bCaldate = checkCalendarDate(today(),sIncCal,sExcCal,0,false,0);