Legato
Legato

GoFiler Legato Script Reference

 

Legato v 1.4j

Application v 5.22b

  

 

Chapter FiveGeneral Functions (continued)

AddDays Function

Overview

The AddDays function adds or subtracts a specified number of days from an ISO-8601 formatted date.

Syntax/Parameters

Syntax

string = AddDays ( string value, int bias );

Parameters

value

A string in ISO-8601 format. The format need not contain the time.

bias

An int containing a positive or negative amount of days by which to adjust the date.

Return Value

Returns a string as an adjusted ISO-8601 date or an empty string on failure. Use the GetLastError function to retrieve a formatted error code. The most common error is a format or syntax error in the source value parameter.

Remarks

The AddDays function will count the leap years and days of months to make its adjustments. The source date must be later than January 1, 1601.

If a time value is provided, it is passed through.

Related Functions 

Platform Support

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

Legato IDE, Legato Basic