Date Arithmetic

Top  Previous  Next

 

Various dates are saved in internal Robo-FTP script variables. For example, the current date is always saved in the %date variable.

 

Robo-FTP provides two script commands, DATEADD and DATESUB, that allow variables containing a date (i.e., any string in the format mm-dd-yy or mm/dd/yy) to be manipulated by adding or subtracting a specified number of days.

 

Robo-FTP also provides two script commands, DATETIMEADD and DATETIMESUB, that allow variables containing a date time (i.e., any string in the format Sat Feb 16 11.00.22 2013) to be manipulated by adding or subtracting a specified number of days, hours, minutes, or seconds depending on the option specified.

 

See also: Using the %date, %datetime, and %time Variables