|
Use this function to add two dates. | |||||||||
![]() |
Please note that there is a defined limit range for valid dates. The lower boundary is 1970-01-01 while the upper boundary depends on the type of computer architecture being used. Only calculations that do not exceed those boundaries can be performed with this function. |
|||||||||
Syntax: |
||||||||||
{DAT_VAR|STR_VAR}= date_add({DAT_EXPR},{DAT_EXPR}) | ||||||||||
|
||||||||||
Return value: |
||||||||||
|
||||||||||
Example: |
||||||||||
Declaration of Variables | ||||||||||
10 DOCU_STRING_1 = date_add(date(),"0000-01-30 00:00:00") 20 put(DOCU_STRING_1) |
||||||||||
Result: (date() provides the current date: 1999-08-25 12:32:59) | ||||||||||
![]() |
||||||||||
![]() |
A boundary check is performed for all calculated dates. If an invalid date is found days are subtracted until the date does no longer exceed the range. | |||||||||
![]() |
Functions and commands: Date and Time |