[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: -Millisecond, -Second, -Minute, -Hour, -Day, -Week, -Month, or -Year.
[Date Variable->(Add: (Duration))]
[Date Variable->(Add: -Year=Integer)]
[Date Variable->(Add: -Month=Integer)]
[Date Variable->(Add: -Week=Integer)]
[Date Variable->(Add: -Day=Integer)]
[Date Variable->(Add: -Hour=Integer)]
[Date Variable->(Add: -Minute=Integer)]
[Date Variable->(Add: -Second=Integer)]
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
Tag Link | [Date->Add] | Category | Date |
---|---|---|---|
Type | Member | Data Source | Any |
Support | Preferred | Version | 6.0 |
Output Type | None | Security | None |
Implementation | LCAPI | Sets | Lasso 8.5, Lasso 8.0, Lasso 7.0, Lasso 6.0 |
Please note that periodically LassoSoft will go through the notes and may incorporate information from them into the documentation. Any submission here gives LassoSoft a non-exclusive license and will be made available in various formats to the Lasso community.
©LassoSoft Inc 2015 | Web Development by Treefrog Inc | Privacy | Legal terms and Shipping | Contact LassoSoft