| Tag Link | [Date->Add] | Category | Date |
|---|---|---|---|
| Type | Member | Source Available | No |
| Support | Preferred | Version | 6.0 |
| Change | Unchanged | Data Source | Any |
| Output Type | None | Security | None |
| Implementation | LCAPI | Sets | Lasso 8.5, Lasso 8.0, Lasso 7.0, Lasso 6.0 |
[Date->Add] adds a duration to a Lasso date variable. Modifies the variable value but does not output a value.
The first parameter is a Lasso date data type that has been cast using the [Date] tag. The second parameter is a valid Lasso duration data type that has been cast using the [Duration] tag.
Optional keyword/value parameters may be used in place of a duration to define what should be added to the first parameter:
[Date Variable->(Add: (Duration))]
[Date Variable->(Add:
[Date Variable->(Add:
[Date Variable->(Add:
[Date Variable->(Add:
[Date Variable->(Add:
[Date Variable->(Add:
[Date Variable->(Add:
| Optional Parameters | |
|---|---|
| -Millisecond | Add the specified number of milliseconds to the date. |
| -Second | Add the specified number of seconds to the date. |
| -Minute | Add the specified number of minutes to the date. |
| -Hour | Add the specified number of hours to the date. |
| -Week | Add the specified number of weeks to the date. |
| -Month | Add the specified number of months to the date. |
| -Year | Add the specified number of years to the date. |
| -Day | Add the specified number of days to the date. |
To add time to a specified date:
The following examples show the result of adding a duration to the date 5/22/2002.
[Var:'MyDate'=(Date:'5/22/2002')]
[$MyDate->(Add:(Duration:'24:00:00'))]
[$MyDate]
5/23/2002 00:00:00