Legato
Legato

GoFiler Legato Script Reference

 

Legato v 1.6a

Application v 6.0a

  

 

Chapter FiveGeneral Functions (continued)

IsBusinessDay Function

Overview

The IsBusinessDay function tests the specified date for being a normal business day (Monday through Friday) and not being a Federal Holiday.

Syntax/Parameters

Syntax

boolean = IsBusinessDay ( string date | qword date );

Parameters

date

A string or qword value as a well formatted date siting or a date-time value, respectively.

Return Value

Returns a boolean as TRUE, FALSE or -1. On failure, function returns -1. Use GetLastError or IsError to determine if an error occurred or if daylight savings time is not supported.

Remarks

The function tests the specified date for being a normal business day (Monday through Friday) and not being a Federal Holiday.

Since string date interpretation is automatic (SD_AMERICAN), use caution with ambiguous formats. For example, January 12, 2025 is represented is ISO-8601 “2025-01-12” but “2025-12-01” is also a valid date. The function will pick ISO-8601 if the value is ambiguous. See StringToDate for additional information.

Related Functions

Platform Support

Go13, Go16, GoFiler Complete, GoFiler Corporate, GoFiler, GoFiler Lite, GoXBRL

Legato IDE, Legato Basic

Page revised 2025-03-13