TapeTrack Documentation

Because there is more to tape management than you ever realized

User Tools

Site Tools


engine:import:setvar2date

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
engine:import:setvar2date [2020/03/04 01:19] – [Syntax] Scott Cunliffeengine:import:setvar2date [2025/01/21 22:07] (current) – external edit 127.0.0.1
Line 40: Line 40:
 Set variable YESTERDAY to yesterday's date. Set variable YESTERDAY to yesterday's date.
  
-<sxh>+<code>
 SetVar2Date(YESTERDAY, "*-1", "%%Y-%%m-%%d"); SetVar2Date(YESTERDAY, "*-1", "%%Y-%%m-%%d");
 WriteMsg("Yesterday was %YESTERDAY"); WriteMsg("Yesterday was %YESTERDAY");
-</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, "Y-0", "%%Y-%%m-%%d"); SetVar2Date(START, "Y-0", "%%Y-%%m-%%d");
 SetVar2Date(END, "y-0", "%%Y-%%m-%%d"); SetVar2Date(END, "y-0", "%%Y-%%m-%%d");
 WriteMsg("Date range is $START through $END"); WriteMsg("Date range is $START through $END");
-</sxh>+</code>
  
 {{tag> import_engine sync_engine}} {{tag> import_engine sync_engine}}
engine/import/setvar2date.1583284755.txt.gz · Last modified: 2025/01/21 22:07 (external edit)