Lasso Soft Inc. > Home

[Date->Add]

[Date->Add] adds a duration to a Lasso date.

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.

Outputs a Lasso date in mm/dd/yyyy hh:mm:ss format by default.

  • Syntax
  • Parameters
[(Date)->(Add:(Duration))]
[(Date)->(Add: -Week=Integer)]
[(Date)->(Add: -Day=Integer)]
[(Date)->(Add: -Hour=Integer)]
[(Date)->(Add: -Minute=Integer)]
[(Date)->(Add: -Second=Integer)]
Optional Parameters
-Millisecond Add the specified number of milliseconds to the base duration.
-Second Add the specified number of seconds to the base duration.
-Minute Add the specified number of minutes to the base duration.
-Hour Add the specified number of hours to the base duration.
-Week Add the specified number of weeks to the base duration.
Examples

To add time to a specified date:

The following examples show the result of adding a duration to the date 5/22/2002.

[Var_Set:'MyDate'=(Date:'5/22/2002')]
[$MyDate->(Add:(Duration:'24:00:00'))] 
[$MyDate] 
Result:
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 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. > Home

 

 

©LassoSoft Inc 2015 | Web Development by Treefrog Inc | PrivacyLegal terms and Shipping | Contact LassoSoft