Lasso Soft Inc. > Home

[Date_Add]

[Date_Add] adds a specified number of weeks, days, hours, minutes, or seconds to a base date value. The first parameter should be in Lasso date string format (mm/dd/yyyy hh:mm:ss) . Subsequent keyword/value parameters define what should be added to the first parameter: -Second, -Minute, -Hour, -Day, or -Week.

  • Syntax
  • Parameters
[Date_Add: Base Date,
  -Week=Weeks,
  -Day=Days,
  -Hour=Hours,
  -Minute=Minute,
  -Second=Seconds]
Required Parameters
Base Date Must be in Lasso date format.
Optional Parameters
-Second Specifies the number of seconds to add to the specified date.
-Minute Specifies the number of minutes to add to the specified date.
-Hour Specifies the number of hours to add to the specified date.
-Day Specifies the number of days to add to the date.
-Week Specifies the number of weeks to add to the date.
Examples

To calculate the time 4 hours from the current time:

Use the [Date_Add] tag to add 4 hours to the current date. The return value will be the current date with the time set to 4 hours from now.

[Date_Add: (Date_GetCurrentDate), -Hour=4]
Result:
6/26/2001 4:12:32
Tag Link [Date_Add] Category Date
Type Substitution Data Source Any
Support Preferred Version 3.0
Output Type Date String Security None
Implementation Sets Lasso 5.0,LDML3x

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