SUB_MONTHS Operation

How to use the SUB_MONTHS operation for Computed Attributes

Definition

The SUB_MONTHS operation allows you to subtract months from a date.

Example

SUB_MONTHS(‘2020-03-30’, 2)

Result:
2020-01-30

Syntax Guide

SUB_MONTHS(date, months)

date - The date to subtract months from

days - The number of months you want to subtract from the date