Icon SubtractYearMonthFromDateTime Method

function SubtractYearMonthFromDateTime(Value: TDateTime;
      YearMonthInterval: TEDBYearMonthInterval; YearMonthIntervalType:
      TEDBYearMonthIntervalType): TDateTime

Call the SubtractYearMonthFromDateTime method to subtract a year-month interval from a date-time value and return the new date-time value.

Information In ElevateDB, year-month intervals are Integer values that represent the number of days that have elapsed between two calendar days. Use the TEDBEngine YearMonthIntervalToSQLStr method to convert a year-month interval into a readable string.
Image