businessday()

Scalar. Determines if a date value falls on a business day (neither a weekend nor a holiday).

Note: This function is supported in mixed case. The Event Stream Processor considers businessday() and businessDay() the same function.

Syntax

businessday ( calendarfile, datevalue )

Parameters

calendar

A string representing the file path for a calendar file

datevalue

A date/time type

Usage

The function returns 1 if the date falls on a business day (true), or 0 otherwise (false). The function returns an integer.

Example

businessDay('/cals/us.cal',v.TradeTime) returns 1 if the date portion of v.TradeTime falls on a business day, and 0 otherwise.