Products Downloads


French version


 

 

ADELIA

VADELIA

SADELIA

WADELIA

MADELIA

(I/B)

(I/B)

(B)

(I/B)

(I)

 

Warning: In the case of ADELIA programs, this function is not compatible with C generator.

 

Description

Used to calculate a date by adding a number of days, months or years to a given date.

 

Syntax

Result = &calculate_DATE(Date;Number of units;Unit)

 

Parameters

 

Description

Contents

Controls

Result

DATE type variable.

Date calculated.

 

Date

DATE type variable.

Initial date to which is added the number of days, months or years given as a parameter.

Mandatory parameter.

Number of units

NUM_E or NUM_P type numeric variable or constant of length <= 15 with 0 decimals.

Number of days, months or years to be added to the date given as a parameter.

Mandatory parameter.

Unit

One-character alphanumeric variable or constant.

Possible values:

Y   Year

M   Month

D   Day

Mandatory parameter.

 

Note: If the unit is not a valid value, the result is equal to the initial date.

 

Example

This line will add 89 days to the date which is contained in DATE_VAR1.

DATE_VAR2 = &CALCULATE_DATE(DATE_VAR1;89;'D')

 

List of predefined functions by topic

 

↑ Top of page

  • Aucune étiquette