Scalar. Determines if a date value falls on a business day (neither a weekend nor a holiday).
businessday ( calendarfile, datevalue )
calendar | A string representing the file path for a calendar file |
datevalue | A date/time type |
The function returns 1 if the date falls on a business day (true), or 0 otherwise (false). The function returns an integer.
businessDay('/cals/us.cal',v.TradeTime) returns 1 if the date portion of v.TradeTime falls on a business day, and 0 otherwise.