engine:import:setvar2date
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
engine:import:setvar2date [2020/03/03 22:49] – Scott Cunliffe | engine:import:setvar2date [2025/01/21 22:07] (current) – external edit 127.0.0.1 | ||
---|---|---|---|
Line 11: | Line 11: | ||
'' | '' | ||
- | // | + | ^ Variable ^ Type ^ Description ^ Min Length ^ Max Length ^ |
- | // | + | |varname| String |Name of the local variable | 1 | 16 | |
- | // | + | |date| String | The date, required in one of the formats in the table below| 1 | 64 | |
+ | |value | String | The date value in strfdate(3) format | 1 | 64 | | ||
- | |varname| The name of the local variable that is to be set.| | + | ^ Date Variable Formats^ Description^ |
- | |date| The string representing the date required in one of the following formats:| | + | |
- | + | ||
- | ^ Date Variables^ | + | |
|*[+< | |*[+< | ||
|*| Today.| | |*| Today.| | ||
Line 37: | Line 35: | ||
|M-1+3| The 3rd day of last month.| | |M-1+3| The 3rd day of last month.| | ||
- | |value| The date value in strfdate(3) format.| | ||
===== Example ===== | ===== Example ===== | ||
Line 43: | Line 40: | ||
Set variable YESTERDAY to yesterday' | Set variable YESTERDAY to yesterday' | ||
- | <sxh> | + | <code> |
SetVar2Date(YESTERDAY, | SetVar2Date(YESTERDAY, | ||
WriteMsg(" | WriteMsg(" | ||
- | </sxh> | + | </code> |
Set variable START to the first day of this year and END to the last. | Set variable START to the first day of this year and END to the last. | ||
- | <sxh> | + | <code> |
SetVar2Date(START, | SetVar2Date(START, | ||
SetVar2Date(END, | SetVar2Date(END, | ||
WriteMsg(" | WriteMsg(" | ||
- | </sxh> | + | </code> |
{{tag> import_engine sync_engine}} | {{tag> import_engine sync_engine}} |
engine/import/setvar2date.1583275772.txt.gz · Last modified: 2025/01/21 22:07 (external edit)