Contents
Display Legacy Contents

 Print
    DateTimeSub      
This Function returns a <string>, which is the date time resultant of the subtraction between the specified Date Time and Value.

Parameters

Date Time <string>
  Date Time to subtract the Value from. This parameter must be in format YYYYMMDDHHMISSCCC.
   
Value Unit <string>
  Unit of Value to subtract from Date Time.
The Possible values for this parameter are:

  "S"     Second.
  "M"

Minute.
  "H"

Hour.
  "D"

Day.
  "HHMMSS"     Time.
  "DDHHMMSS"     Date Time.
   
Value <string>
  Value to subtract from Date Time. The unit of this parameter depends on the Value Unit.

     
Example 1
  Example 2
DateTimeSub("20100301091530000", "D", "1")

Result = 20100228091530000
  DateTimeAdd("20100301091530000", "HHMMSS", "010000")

Result = 20100301081530


See also
Samples
Sample 1
Sample 2
 
Updated: 3/25/2013 11:46 AM