Datamax v1.1x Printer User Manual


 
Copyright © 2007 • MCL Technologies • All Rights Reserved
www.mcl-collection.com
Chapter 5 : Using Processes
5.3.1. Date Add/Subtract
Add/Subtract
The Date Add/Subtract process allows you to add or subtract a number
of days to or from a date variable (i.e. a variable that contains a date)
and save it in a new variable.
To add or subtract days to a date variable, proceed as follows:
1 Add the process Date Operation and click OK
2 In the Value 1 box, create or select the input date variable from
the available User Local variables, All Local variables, Global
variables or System variables.
3 In the Input Format box, select the format of the input date.
4 In the Operation box select Add/Subtract and the measure of
time (days, weeks, months, etc.)
5 In the Value 2 box, type the quantity of the given unit of measure
to add to the input variable or select a variable that contains the
value to be added or subtracted.
6 In the Result Variable box, select or create the variable in which
you want to save the resulting date and click OK.
7 In the Output Format box, select the format of the date desired in
the resulting variable.
8 Click OK.
Example
The following example takes the variable [D4] V_Delivery_Date and
subtracts 5 days (adds -5 days) to determine the ordering date. The
result is saved in the variable [D3] V_Ordering_Date.
October 2007 Page
144