Lasso Soft Inc. > Home

[Date_Subtract]

[Date_Subtract] subtracts a specified number of weeks, days, hours, minutes, or seconds from a base date value. The first parameter should be in Lasso date string format. Subsequent keyword/value parameters define what should be subtracted from the first parameter: -Second, -Minute, -Hour, -Day, or -Week.

  • Syntax
  • Parameters
[Date_Subtract: Base Date,
  -Week=Weeks,
  -Day=Days,
  -Hour=Hours,
  -Minute=Minute,
  -Second=Seconds]
Required Parameters
Base Date The date to be operated upon.
Optional Parameters
-Second The number of seconds to subtract from the date.
-Minute The number of minutes to subtract from the date.
-Hour The number of hours to subtract from the date.
-Day The number of days to subtract from the date.
-Week The number of weeks to subtract from the date.
Examples

To return the date of the same day a week ago:

Use the [Date_Subtract] tag to subtract one week from the current date. The following example outputs the date and time of the moment which is exactly seven days in the past.

<p>[Date_Subtract: (Date_GetCurrentDate), -Week=1]
Result:
<p>9/6/2001 13:43:24
Tag Link [Date_Subtract] Category Date
Type Substitution Data Source Any
Support Preferred Version 3.0
Output Type Integer 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