[Date_Subtract] subtracts a specified number of weeks, days, hours, minutes, or seconds from a base date value. The first parameter should be a Lasso date data type or valid Lasso date string. Subsequent keyword/value parameters define what should be subtracted from the first parameter: -Second, -Minute, -Hour, -Day, -Week, -Month, or -Year.
[Date_Subtract: (Date),
-Year=Integer,
-Month=Integer,
-Week=Integer,
-Day=Integer,
-Hour=Integer,
-Minute=Integer,
-Second=Integer]
[Date_Subtract: 'mm/dd/yyyy',
-Year=Integer,
-Month=Integer,
-Week=Integer,
-Day=Integer,
-Hour=Integer,
-Minute=Integer,
-Second=Integer]
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), -Week=1]
<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 | Date | Security | None |
Implementation | LCAPI | Sets | Lasso 8.5, Lasso 8.0, Lasso 7.0, Lasso 6.0, 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 2015 | Web Development by Treefrog Inc | Privacy | Legal terms and Shipping | Contact LassoSoft