isBusDate Method

Class: Date

Description

This method returns a Boolean value that indicates whether the Date object represents is a business date in the specified calendar.

Syntax

dateObject.isBusDate(String calendar)

Parameters

calendar

A valid calendar name. If absent or "", the default is IBS.

Returns

True, if the Date is business date in the specified calendar.

False, if the Date is not a business date in the specified calendar.

When Became Available

Profile v7.0

Example

type RecordCIF cif = Db.getRecord("CIF","ACN=:ACN")

type Date date = cif.dob                     // declare Date object

type Boolean ISBUS1 = date.isBusDate()

type Boolean ISBUS2 = date.isBusDate("")     // same as above

type Boolean ISBUS3 = date.isBusDate("IBS")  // this too

 

* Variable ACN must be defined prior to the getRecord statement.